Text Generation
Transformers
PyTorch
English
llama
math
reasoning
Eval Results
text-generation-inference
Instructions to use EleutherAI/llemma_7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EleutherAI/llemma_7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EleutherAI/llemma_7b")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EleutherAI/llemma_7b") model = AutoModelForCausalLM.from_pretrained("EleutherAI/llemma_7b", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use EleutherAI/llemma_7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EleutherAI/llemma_7b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EleutherAI/llemma_7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/EleutherAI/llemma_7b
- SGLang
How to use EleutherAI/llemma_7b 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 "EleutherAI/llemma_7b" \ --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": "EleutherAI/llemma_7b", "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 "EleutherAI/llemma_7b" \ --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": "EleutherAI/llemma_7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use EleutherAI/llemma_7b with Docker Model Runner:
docker model run hf.co/EleutherAI/llemma_7b
Commit History
-
Update EvalEval source links to flat datastore
Verified signatureUpdates existing EvalEval Community Evals YAML entries to link to flat datastore aggregate objects pinned to an immutable EEE datastore commit, and normalizes source.name to EvalEval. No score, dataset, task, or date changes are intended. This updates existing open PR refs only. Contributor: evaleval0754bf7
-
Add EvalEval community eval results
Verified signatureAdds EvalEval Community Evals YAML entries with source backlinks to EEE aggregate records. Contributor: evaleval8bb3944
-
Add EvalEval community eval results
Verified signatureAdds EvalEval Community Evals YAML entries with source backlinks to EEE aggregate records. Contributor: evaleval40310e3 -
Add EvalEval community eval results
Verified signatureAdds EvalEval Community Evals YAML entries with source backlinks to EEE aggregate records. Contributor: evaleval56d4218
-
Update config.json
Verified signaturee223eee
-
Update README.md
acc26c5 -
update readme
zhangir-azerbayev84c323e -
update readme with links
zhangir-azerbayev21a6f14
-
standard links
zhangir-azerbayev660c780 -
update readme
zhangir-azerbayevf1743f9 -
update readme
zhangir-azerbayevf99619d
-
revert
zhangir-azerbayevb2ce480 -
?
zhangir-azerbayevfe1b7ff -
readme
zhangir-azerbayev74cd0a5
-
Create README.md
e8473e1
-
Upload tokenizer.json
0dc1b85 -
Upload tokenizer.model
238a3cb -
Upload pytorch_model.bin.index.json
c898903 -
Upload config.json
1da317f -
Upload generation_config.json
047e02e -
Upload pytorch_model-00001-of-00003.bin
9ed47a9 -
Upload pytorch_model-00002-of-00003.bin
06a4e58 -
Upload pytorch_model-00003-of-00003.bin
bdacd92 -
Upload tokenizer_config.json
27297dd -
initial commit
2c4a0a4