Instructions to use Hack90/virus_pythia_small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Hack90/virus_pythia_small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Hack90/virus_pythia_small")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Hack90/virus_pythia_small") model = AutoModelForCausalLM.from_pretrained("Hack90/virus_pythia_small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Hack90/virus_pythia_small with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Hack90/virus_pythia_small" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Hack90/virus_pythia_small", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Hack90/virus_pythia_small
- SGLang
How to use Hack90/virus_pythia_small with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Hack90/virus_pythia_small" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Hack90/virus_pythia_small", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Hack90/virus_pythia_small" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Hack90/virus_pythia_small", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Hack90/virus_pythia_small with Docker Model Runner:
docker model run hf.co/Hack90/virus_pythia_small
Commit History
-
Update special_tokens_map.json
Verified signature2d1dccd
-
Update tokenizer_config.json
Verified signature8d37d19 -
Update tokenizer.json
Verified signaturecd2785e -
Update tokenizer.json
Verified signatureb4d935b
-
Update tokenizer.json
Verified signature4fbbbc8 -
Update tokenizer.json
Verified signature3929aa1 -
Update tokenizer.json
Verified signature4cbb22a -
Update tokenizer.json
Verified signaturedda1b6a -
Update special_tokens_map.json
Verified signaturea70aa14 -
Update tokenizer.json
Verified signatureda0fa7f -
Update tokenizer.json
Verified signature5fe7d19 -
Update tokenizer.json
Verified signaturec692723 -
Upload tokenizer
Verified signature78adb91
-
Update tokenizer_config.json
Verified signature8ee4cce -
Update tokenizer.json
Verified signatureadd3f8a
-
Upload folder using huggingface_hub
Verified signature4c9f844 -
Upload GPTNeoXForCausalLM
Verified signature55f79c6 -
initial commit
Verified signature0f351a3