Instructions to use TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR:Q8_0 # Run inference directly in the terminal: llama cli -hf TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR:Q8_0 # Run inference directly in the terminal: llama cli -hf TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR:Q8_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR:Q8_0
Use Docker
docker model run hf.co/TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR:Q8_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR:Q8_0
- SGLang
How to use TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR 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 "TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR" \ --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": "TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR", "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 "TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR" \ --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": "TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR with Ollama:
ollama run hf.co/TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR:Q8_0
- Unsloth Desktop
- Docker Model Runner
How to use TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR with Docker Model Runner:
docker model run hf.co/TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR:Q8_0
- Lemonade
How to use TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR:Q8_0
Run and chat with the model
lemonade run user.Mistral-7B-Inst-v0.2-Alpaca-FR-Q8_0
List all available models
lemonade list
- Atomic Chat
TPM-28/Mistral-7B-Inst-v0.2-Alpaca-FR
Model
Mistral-7B-Inst-v0.2-Alpaca-FR is a French language model, trained using the QLORA (Quantization Learning for Learned Optimized Representation Access) approach on the TPM-28/alpaca-cleaned-fr dataset.
The alpaca-cleaned-fr dataset is a French translation of the English dataset pinzhenchen/alpaca-cleaned-fr, performed using the LibreTranslate translator.
Usage
To query the model, the request must be formatted according to the following template:
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
{System}
### Input:
{User}
### Response:
{Assistant}
The model will then generate an appropriate response to complete the request.
Limitations
- The model may be biased by the original (translated) data used for training.
- Downloads last month
- 30
8-bit