Instructions to use SemanticAlignment/Mistral-v0.1-Italian-FVT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SemanticAlignment/Mistral-v0.1-Italian-FVT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SemanticAlignment/Mistral-v0.1-Italian-FVT")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SemanticAlignment/Mistral-v0.1-Italian-FVT") model = AutoModelForCausalLM.from_pretrained("SemanticAlignment/Mistral-v0.1-Italian-FVT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SemanticAlignment/Mistral-v0.1-Italian-FVT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SemanticAlignment/Mistral-v0.1-Italian-FVT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SemanticAlignment/Mistral-v0.1-Italian-FVT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/SemanticAlignment/Mistral-v0.1-Italian-FVT
- SGLang
How to use SemanticAlignment/Mistral-v0.1-Italian-FVT 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 "SemanticAlignment/Mistral-v0.1-Italian-FVT" \ --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": "SemanticAlignment/Mistral-v0.1-Italian-FVT", "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 "SemanticAlignment/Mistral-v0.1-Italian-FVT" \ --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": "SemanticAlignment/Mistral-v0.1-Italian-FVT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use SemanticAlignment/Mistral-v0.1-Italian-FVT with Docker Model Runner:
docker model run hf.co/SemanticAlignment/Mistral-v0.1-Italian-FVT
Commit History
-
Add pipeline tag, library name and Github link
Verified signatureThis PR adds the `pipeline_tag` and `library_name` to the model card metadata, and includes a link to the GitHub repository for easier access to the code. The `pipeline_tag` is set to `text-generation` as this is a language model. The `library_name` is set to `transformers` because the model is used with the `transformers` library.30e8a45
-
Update README.md
Verified signature82d8aae -
Update README.md
Verified signature0fff7b0 -
Update README.md
Verified signature2dd7b65 -
Update README.md
Verified signature23dfb43 -
Update README.md
Verified signatured8fba62 -
Update README.md
Verified signature5612e6b
-
Create README.md
Verified signature462cf9a
-
Upload folder using huggingface_hub
Verified signature8943bee -
initial commit
Verified signature4d42a46