Text Generation
Transformers
PyTorch
Safetensors
English
mistral
Generated from Trainer
conversational
Eval Results (legacy)
Eval Results
text-generation-inference
Instructions to use HuggingFaceH4/zephyr-7b-beta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HuggingFaceH4/zephyr-7b-beta with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="HuggingFaceH4/zephyr-7b-beta") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("HuggingFaceH4/zephyr-7b-beta") model = AutoModelForCausalLM.from_pretrained("HuggingFaceH4/zephyr-7b-beta", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use HuggingFaceH4/zephyr-7b-beta with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HuggingFaceH4/zephyr-7b-beta" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HuggingFaceH4/zephyr-7b-beta", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/HuggingFaceH4/zephyr-7b-beta
- SGLang
How to use HuggingFaceH4/zephyr-7b-beta 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 "HuggingFaceH4/zephyr-7b-beta" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HuggingFaceH4/zephyr-7b-beta", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "HuggingFaceH4/zephyr-7b-beta" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HuggingFaceH4/zephyr-7b-beta", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use HuggingFaceH4/zephyr-7b-beta with Docker Model Runner:
docker model run hf.co/HuggingFaceH4/zephyr-7b-beta
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: evalevalef232d8
-
Add EvalEval community eval results
Verified signatureAdds EvalEval Community Evals YAML entries with source backlinks to EEE aggregate records. Contributor: evalevaldfa9f7c
-
Add EvalEval community eval results
Verified signatureAdds EvalEval Community Evals YAML entries with source backlinks to EEE aggregate records. Contributor: evaleval3ebc133 -
Add EvalEval community eval results
Verified signatureAdds EvalEval Community Evals YAML entries with source backlinks to EEE aggregate records. Contributor: evaleval24d0922
-
Add UltraChat and UltraFeedback references
Verified signature892b3d7
-
Delete training_args.bin
Verified signature20e1a58
-
Update widgetData input (#54)
Verified signature- Update widgetData input (85df04284744d0eb82cd35f774cdeea6c398259e) - Update README.md (44142f96668a6fb8e1e0850261d99c7a97b024a3) Co-authored-by: Lucain Pouget <Wauplin@users.noreply.huggingface.co>b70e0c9
-
Update README.md
dc24cab -
Update Open LLM Leaderboard source urls (#42)
- Update Open LLM Leaderboard source urls (8c0add6494cf3115074586ea16d3bace9ac29dd2) Co-authored-by: Lucain Pouget <Wauplin@users.noreply.huggingface.co>f4e901c
-
[Feedback welcome] Add evaluation results to model card metadata (#40)
- [WIP] Add evaluation results to model card metadata (65813307fbded2cce54e6eae1dc9ef2044808d32) - Update README.md (a14ed6846c3d2d79992671e383b1d0fe4fdab4a7) - Update README.md (72ac185e4da5284174853ff3b7e5de931df4a91c) - Update README.md (5ae483971d716da0a3971337cb6c743db710631e) - Update README.md (a044a6c5deec99bbd7e50db48ba42c2938f628a0) - Update README.md (3373c17a1eed00625f27cfda27cc1f1ba10a0cf8) Co-authored-by: Lucain Pouget <Wauplin@users.noreply.huggingface.co>0f17b36
-
Add widget example (#34)
- Add widget example (8167fa42e1d5a4581a8750174d0226e534b5a495) - Update README.md (2ea4a25f5f8c309d0905b38779efc8b9e9230814)8d44a71
-
Update README.md
36db76e
-
Adding Evaluation Results (#31)
- Adding Evaluation Results (5c15b90755bfd112775ed6136ba2840e7d34c1d5) Co-authored-by: Open LLM Leaderboard PR Bot <leaderboard-pr-bot@users.noreply.huggingface.co>c2339b6 -
Update README.md (#28)
- Update README.md (70788fbbbdcedb5bc7f309548eceef33fb3b02e6) Co-authored-by: Nathan Lambert <natolambert@users.noreply.huggingface.co>abe3655
-
Upload MistralForCausalLM (#20)
- Upload MistralForCausalLM (0a8db1951635618c17d8be5a6cb850b62dec4446)8af01af
-
Update README.md (#1)
- Update README.md (f189b7cd37b6e7b0dbb175487613d106dffa4722) Co-authored-by: Leandro von Werra <lvwerra@users.noreply.huggingface.co>3bac358 -
Update README.md
af28f1d -
Update README.md
99dc9c4
-
Update README.md
8d4f1f7 -
Update README.md
0f4b871 -
Update README.md
e981ffb -
Update config.json
e323593 -
Delete dialogue_template.json
fff0b6c -
Update README.md
63bc8ee -
Update README.md
8bf7bff -
Duplicate from HuggingFaceH4-colab/zephyr-7b-beta-sharded
97ecdb4