Text Generation
Transformers
PyTorch
Safetensors
English
llama
Eval Results (legacy)
text-generation-inference
Instructions to use acrastt/Puma-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use acrastt/Puma-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="acrastt/Puma-3B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("acrastt/Puma-3B") model = AutoModelForCausalLM.from_pretrained("acrastt/Puma-3B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use acrastt/Puma-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "acrastt/Puma-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "acrastt/Puma-3B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/acrastt/Puma-3B
- SGLang
How to use acrastt/Puma-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 "acrastt/Puma-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": "acrastt/Puma-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 "acrastt/Puma-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": "acrastt/Puma-3B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use acrastt/Puma-3B with Docker Model Runner:
docker model run hf.co/acrastt/Puma-3B
Commit History
-
Adding Evaluation Results (#8)
Verified signature- Adding Evaluation Results (6ae692c593a501209d319a38b7e2dbe9aee3ae27) Co-authored-by: Open LLM Leaderboard PR Bot <leaderboard-pr-bot@users.noreply.huggingface.co>d7ba27b
-
Adding Evaluation Results (#7)
- Adding Evaluation Results (3c01dd49c07c2f44fdd990dd57132fd6374afcb7)de00038 -
Update README.md
35cb2d1
-
Adding Evaluation Results (#5)
- Adding Evaluation Results (871249b4ebd72ec73181bcc705490256b60b9bb1)1a4bfa7
-
Update README.md
9af4ca1
-
Update README.md
5828b53
-
Update README.md
284bb0e
-
Update README.md
69ac580 -
Update README.md
e276c22 -
Update README.md
e8bcd67 -
Update README.md
3585679
-
Adding `safetensors` variant of this model (#2)
- Adding `safetensors` variant of this model (9e61550315c33ce00abc337f0a519f39b52c083a) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>1159e9c
-
Update README.md
4c42e44 -
Update README.md
c8aa5c9 -
Update README.md
10c7364 -
Update README.md
d22d415 -
Upload 5 files
5552b4e -
Upload pytorch_model.bin with huggingface_hub (#1)
- Upload pytorch_model.bin with huggingface_hub (79b78e76d4b81b8c2d2662acf7adbc6b7893541f)dadfb0b -
initial commit
83912e0