Instructions to use EleutherAI/llemma_34b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EleutherAI/llemma_34b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EleutherAI/llemma_34b")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EleutherAI/llemma_34b") model = AutoModelForCausalLM.from_pretrained("EleutherAI/llemma_34b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use EleutherAI/llemma_34b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EleutherAI/llemma_34b" # 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_34b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/EleutherAI/llemma_34b
- SGLang
How to use EleutherAI/llemma_34b 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_34b" \ --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_34b", "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_34b" \ --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_34b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use EleutherAI/llemma_34b with Docker Model Runner:
docker model run hf.co/EleutherAI/llemma_34b
Commit History
-
Adding Evaluation Results
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/Weyaxi/open-llm-leaderboard-results-pr The purpose of this PR is to add evaluation results from the Open LLM Leaderboard to your model card. If you encounter any issues, please report them to https://huggingface.co/spaces/Weyaxi/open-llm-leaderboard-results-pr/discussions55560d6
-
Update README.md
08634a8 -
update readme
zhangir-azerbayeve2e4413 -
update readme with links
zhangir-azerbayev748da01
-
correct
zhangir-azerbayev484ce60 -
standard links
zhangir-azerbayev2e13494 -
update readme
zhangir-azerbayevcee95c7
-
yes
zhangir-azerbayev3925820
-
fix tokenizer
zhangir-azerbayev87c9edc
-
Upload pytorch_model-00011-of-00014.bin
5a4995c -
Upload tokenizer.json
9ff7fc8 -
Upload pytorch_model-00010-of-00014.bin
efc641c -
Upload tokenizer.model
18e4993 -
Upload pytorch_model-00012-of-00014.bin
3cf2332 -
Upload pytorch_model-00013-of-00014.bin
3795277 -
Upload pytorch_model-00014-of-00014.bin
ad0d8d2 -
Upload pytorch_model.bin.index.json
be3085d -
Upload pytorch_model-00005-of-00014.bin
8e13bb3 -
Upload pytorch_model-00004-of-00014.bin
063985f -
Upload pytorch_model-00006-of-00014.bin
c42f9b1 -
Upload pytorch_model-00007-of-00014.bin
eb7cb4b -
Upload pytorch_model-00002-of-00014.bin
bc346d1 -
Upload pytorch_model-00003-of-00014.bin
b2e73ea -
Upload generation_config.json
3d6b92b -
Upload pytorch_model-00001-of-00014.bin
369f0a5 -
Upload config.json
17d126f -
Upload tokenizer_config.json
de5783e -
Upload pytorch_model-00008-of-00014.bin
35c669f -
Upload pytorch_model-00009-of-00014.bin
2689e2b -
initial commit
c36b29e