Run this model with HF Jobs
Run MaziyarPanahi/Mistral-7B-v0.1 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/MaziyarPanahi/Mistral-7B-v0.1. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/MaziyarPanahi/Mistral-7B-v0.1 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/MaziyarPanahi/Mistral-7B-v0.1. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/MaziyarPanahi/Mistral-7B-v0.1. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use MaziyarPanahi/Mistral-7B-v0.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MaziyarPanahi/Mistral-7B-v0.1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MaziyarPanahi/Mistral-7B-v0.1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("MaziyarPanahi/Mistral-7B-v0.1") model = AutoModelForCausalLM.from_pretrained("MaziyarPanahi/Mistral-7B-v0.1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MaziyarPanahi/Mistral-7B-v0.1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MaziyarPanahi/Mistral-7B-v0.1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MaziyarPanahi/Mistral-7B-v0.1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MaziyarPanahi/Mistral-7B-v0.1
- SGLang
How to use MaziyarPanahi/Mistral-7B-v0.1 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 "MaziyarPanahi/Mistral-7B-v0.1" \ --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": "MaziyarPanahi/Mistral-7B-v0.1", "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 "MaziyarPanahi/Mistral-7B-v0.1" \ --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": "MaziyarPanahi/Mistral-7B-v0.1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MaziyarPanahi/Mistral-7B-v0.1 with Docker Model Runner:
docker model run hf.co/MaziyarPanahi/Mistral-7B-v0.1
Commit History
-
Upload folder using huggingface_hub (#2)
Verified signature- a241df9f29326e653afc391b6f091d014d72a0197e73cd4dfb65e8fc3c787047 (c48fb3a1260d69942962cdc11e3f905dd2530a0c) - c513c2d452afdaefaf399a3a985edf8f0d7b957962f468563414404f724f2b7e (ca16cd1e9a7e293375a392a06a289a5296ab1233) - f813f3f1f9e8c8f1f006962d12b5874b1791f250ed8fd7d9d6dcb1a568b7e15a (cad9b9e05b5bf2d0eb0b8effd0a297875ee2db80)6e82005 -
Upload folder using huggingface_hub (#1)
Verified signature- a241df9f29326e653afc391b6f091d014d72a0197e73cd4dfb65e8fc3c787047 (00d6bb50bb0c93ce5bd143c0f22b31fbb6572c8e) - c513c2d452afdaefaf399a3a985edf8f0d7b957962f468563414404f724f2b7e (82353120e8d36bd06cd2a00d226f065949fcb487) - f5e1a26a99335a119cc193c89e50532582f106d25d44f0c5ae87927637982ea7 (a42ddb3a32df915491f99a9e659d59ff806c45b5)a5da748 -
initial commit
Verified signature1553eb9