Instructions to use precedentbrute/devstral-nloc-sft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use precedentbrute/devstral-nloc-sft with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("mistralai/Devstral-Small-2507") model = PeftModel.from_pretrained(base_model, "precedentbrute/devstral-nloc-sft") - Transformers
How to use precedentbrute/devstral-nloc-sft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="precedentbrute/devstral-nloc-sft")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("precedentbrute/devstral-nloc-sft", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use precedentbrute/devstral-nloc-sft with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "precedentbrute/devstral-nloc-sft" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "precedentbrute/devstral-nloc-sft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/precedentbrute/devstral-nloc-sft
- SGLang
How to use precedentbrute/devstral-nloc-sft 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 "precedentbrute/devstral-nloc-sft" \ --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": "precedentbrute/devstral-nloc-sft", "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 "precedentbrute/devstral-nloc-sft" \ --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": "precedentbrute/devstral-nloc-sft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use precedentbrute/devstral-nloc-sft with Docker Model Runner:
docker model run hf.co/precedentbrute/devstral-nloc-sft
- Xet hash:
- 46714de95d7e4215e0e911d260283a52ab188936794bb2d8146c241b3713e648
- Size of remote file:
- 5.2 kB
- SHA256:
- 6371d60b718e7ba913f956b7fa61f0e10594c0b74f74dcbdfe48a148c6c4513c
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.