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")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("precedentbrute/devstral-nloc-sft", device_map="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
Download optimizer.pt from precedentbrute/devstral-nloc-sft: direct link, hf CLI and curl.
- Browser
- Download file 2.96 GB
-
https://huggingface.co/precedentbrute/devstral-nloc-sft/resolve/main/optimizer.pt
- Command line
-
hf download hf://precedentbrute/devstral-nloc-sft/optimizer.pt
-
curl -L -o optimizer.pt https://huggingface.co/precedentbrute/devstral-nloc-sft/resolve/main/optimizer.pt
2.96 GB
- Xet hash:
- 24bbb2cea20c6d5e7248f6d19c6064ffaf9f7e0aecdc641bb1dbcdd2ad631d4a
- Size of remote file:
- 2.96 GB
- SHA256:
- 758e64e3c09db3a0126d611cc34f3f9a7609b5ddbe644030e2c4230ebce8fcd4
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.