Instructions to use DeepMount00/Mistral-Ita-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DeepMount00/Mistral-Ita-7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DeepMount00/Mistral-Ita-7b")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("DeepMount00/Mistral-Ita-7b") model = AutoModelForCausalLM.from_pretrained("DeepMount00/Mistral-Ita-7b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use DeepMount00/Mistral-Ita-7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DeepMount00/Mistral-Ita-7b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DeepMount00/Mistral-Ita-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/DeepMount00/Mistral-Ita-7b
- SGLang
How to use DeepMount00/Mistral-Ita-7b 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 "DeepMount00/Mistral-Ita-7b" \ --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": "DeepMount00/Mistral-Ita-7b", "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 "DeepMount00/Mistral-Ita-7b" \ --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": "DeepMount00/Mistral-Ita-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use DeepMount00/Mistral-Ita-7b with Docker Model Runner:
docker model run hf.co/DeepMount00/Mistral-Ita-7b
Commit History
-
Update README.md
ae899f0
-
Update README.md
5300e1d -
Upload tokenizer
a9febbf -
Upload MistralForCausalLM
932ee4d -
Update README.md
cbaad8f
-
Upload tokenizer
da4bfef -
Upload MistralForCausalLM
e284e53
-
Update README.md
9cda220
-
Update README.md
6283a0c -
Update README.md
08140eb -
Update README.md
189873c
-
Update README.md
3ff1322 -
Update README.md
30518ee -
Update README.md
c7c6b20 -
Update README.md
d0a0e81 -
Update README.md
9502d6c -
Upload tokenizer
50bdd42 -
Upload MistralForCausalLM
ab8d6e5
-
Update README.md
1495ca6 -
Upload tokenizer
e025b31 -
Upload MistralForCausalLM
31cdfd6 -
Update README.md
c32086b
-
Update README.md
0e7e454 -
Update README.md
2f03f4a -
Update README.md
43ea35d
-
Update README.md
78796f0 -
Update README.md
5b89978 -
Update README.md
3bbdda6 -
Update README.md
f804714 -
Update README.md
75c235c -
Update README.md
4d2835c -
Update README.md
cd358c0 -
Update README.md
91b458a -
Update README.md
813660a -
Create README.md
8b1d838 -
Upload tokenizer
db1987f -
Upload MistralForCausalLM
f37598d -
initial commit
bdd3cfa