Instructions to use Open-Orca/Mistral-7B-OpenOrca with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Open-Orca/Mistral-7B-OpenOrca with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Open-Orca/Mistral-7B-OpenOrca") 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("Open-Orca/Mistral-7B-OpenOrca") model = AutoModelForCausalLM.from_pretrained("Open-Orca/Mistral-7B-OpenOrca", 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 Open-Orca/Mistral-7B-OpenOrca with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Open-Orca/Mistral-7B-OpenOrca" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Open-Orca/Mistral-7B-OpenOrca", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Open-Orca/Mistral-7B-OpenOrca
- SGLang
How to use Open-Orca/Mistral-7B-OpenOrca 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 "Open-Orca/Mistral-7B-OpenOrca" \ --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": "Open-Orca/Mistral-7B-OpenOrca", "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 "Open-Orca/Mistral-7B-OpenOrca" \ --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": "Open-Orca/Mistral-7B-OpenOrca", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Open-Orca/Mistral-7B-OpenOrca with Docker Model Runner:
docker model run hf.co/Open-Orca/Mistral-7B-OpenOrca
Commit History
-
Adding Evaluation Results
This 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/discussions6be3e99
-
Update README.md
8f934b2 -
Upload MistralOrca7BHFLeaderboard.png
d42bad2 -
Update README.md
Update with official HF Leaderboard scores.0b9c924
-
Rename Images/MistralOrcaMTBENCH.png to Images/MistralOrca7BMTBENCH.png
7233ac8 -
Upload MistralOrcaMTBENCH.png
7f65e55 -
Update README.md
a4b1e76 -
Update README.md
0f6c100 -
Update README.md
8df47df -
Update README.md
84cc8dd -
Add chat template (#8)
- Add chat template (777d488ed5aca08804670593ab475e5c8de7868c) - Fix template typo (f82a8e1570c6156c3a1d2a02c31e2ccac6471393) - Explain chat template in README (50a0c3c092a6deea0e36272d4e6509cdd9676219) Co-authored-by: Matthew Carrigan <Rocketknight1@users.noreply.huggingface.co>acef37e
-
Upload MistralOrca7BGPT4ALL.png
953ffc4 -
Update README.md
84afb23 -
Upload MistralOrca7BGPT4ALL.png
17bc883
-
Update README.md
2e63e6e -
Upload MistralOrca7BHFLeaderboard.png
13fe1d4 -
Update README.md
4ea38f7 -
Update README.md
3237098
-
Update tokenizer_config.json
1757241 -
Update config.json
1beff82 -
Update README.md
c628396 -
🤦🏽♂️
9cf863c -
Update README.md
f290356 -
Update README.md
a4ffd28 -
Create generation_config.json
87e20c7 -
Update README.md
2737445 -
Update README.md
687f697 -
Update README.md
ee75dc5 -
Update configs/mistral-7b-oo-phase1.yml
cc88121 -
Update README.md
29856c8 -
Upload MistralOrcaLogo.png
eca89e0 -
Update README.md
66fc9b6 -
Update README.md
bf74c17 -
Upload 3 files
a47bef2 -
Update README.md
4a6e5ef -
Update LICENSE as Apache 2.0 to match base Mistral
4ab10df -
Update README.md
cb03cdd
-
ep4
70fde0f -
Update config.json
26254fa -
Create README.md
[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl) # Mistral 7B OpenOrcaee90c35 -
ep3
498fa90
-
ep2
ba226f7
-
ep1
5f4849c -
Upload folder using huggingface_hub
8a57684 -
initial commit
6c962b3