Instructions to use pansophic/rocket-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pansophic/rocket-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="pansophic/rocket-3B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("pansophic/rocket-3B") model = AutoModelForCausalLM.from_pretrained("pansophic/rocket-3B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use pansophic/rocket-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pansophic/rocket-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pansophic/rocket-3B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/pansophic/rocket-3B
- SGLang
How to use pansophic/rocket-3B 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 "pansophic/rocket-3B" \ --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": "pansophic/rocket-3B", "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 "pansophic/rocket-3B" \ --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": "pansophic/rocket-3B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use pansophic/rocket-3B with Docker Model Runner:
docker model run hf.co/pansophic/rocket-3B
Commit History
-
Update README.md
Verified signature66ef431 -
Adding Evaluation Results (#10)
Verified signature- Adding Evaluation Results (3fd69ce914afdb9d80ed8656ae2de230f4088cc6) Co-authored-by: Open LLM Leaderboard PR Bot <leaderboard-pr-bot@users.noreply.huggingface.co>7e47ac5 -
Update README.md
Verified signaturecc78599 -
Update README.md
Verified signaturea5cfcd4
-
Update config.json
Verified signatureddf1caa -
Update config.json to match upstream stablelm-3b-4e1t (#8)
Verified signature- Update config.json to match upstream stablelm-3b-4e1t (52cdc3f046b567705ee0f6711806b6268e1c6da2) Co-authored-by: Nicholas Davidson <ndavidson@users.noreply.huggingface.co>345305d
-
Adding `safetensors` variant of this model (#4)
- Adding `safetensors` variant of this model (0f80c81ba61dfccbdee23cd9e799b56b22e2ada7) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>9c30f16 -
Fix tokenizer_config.json EOS token (#3)
- Use `<|im_end|>` as EOS token in `tokenizer_config.json` (9e2f067c57c073064f34f85df854b712ffd0ba5a)b09a607 -
Update benchmarks in README
6b65196
-
Update config.json
a5ba4ce
-
Update README.md
cf41972 -
Update README.md
951ff2d -
Update README.md
5a5385d -
Update README.md
2716ba4 -
Update README.md
4c10be4 -
Update README.md
b2ce380 -
Update README.md
a3d28ed -
Upload README.md
 ba63e6f
-
Update README.md
7e59f83
-
Create README.md
04bf1c7 -
Upload 7 files
32b7359 -
initial commit
87bc12e