Instructions to use nosadaniel/mistral-7b-instruct-tuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use nosadaniel/mistral-7b-instruct-tuned with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/mistral-7b-instruct-v0.3-bnb-4bit") model = PeftModel.from_pretrained(base_model, "nosadaniel/mistral-7b-instruct-tuned") - Transformers
How to use nosadaniel/mistral-7b-instruct-tuned with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nosadaniel/mistral-7b-instruct-tuned") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("nosadaniel/mistral-7b-instruct-tuned", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nosadaniel/mistral-7b-instruct-tuned with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nosadaniel/mistral-7b-instruct-tuned" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nosadaniel/mistral-7b-instruct-tuned", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/nosadaniel/mistral-7b-instruct-tuned
- SGLang
How to use nosadaniel/mistral-7b-instruct-tuned 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 "nosadaniel/mistral-7b-instruct-tuned" \ --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": "nosadaniel/mistral-7b-instruct-tuned", "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 "nosadaniel/mistral-7b-instruct-tuned" \ --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": "nosadaniel/mistral-7b-instruct-tuned", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use nosadaniel/mistral-7b-instruct-tuned with Docker Model Runner:
docker model run hf.co/nosadaniel/mistral-7b-instruct-tuned
Download tokenizer.model from nosadaniel/mistral-7b-instruct-tuned: direct link, hf CLI and curl.
- Browser
- Download file 587 kB
-
https://huggingface.co/nosadaniel/mistral-7b-instruct-tuned/resolve/main/tokenizer.model
- Command line
-
hf download hf://nosadaniel/mistral-7b-instruct-tuned/tokenizer.model
-
curl -L -o tokenizer.model https://huggingface.co/nosadaniel/mistral-7b-instruct-tuned/resolve/main/tokenizer.model
587 kB
- Xet hash:
- 70de076fa18896073beef6149fbfc8ac2a287bc510c1a6f422ca4b8538b7a952
- Size of remote file:
- 587 kB
- SHA256:
- 37f00374dea48658ee8f5d0f21895b9bc55cb0103939607c8185bfd1c6ca1f89
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.