Text Generation
Transformers
PyTorch
Safetensors
mistral
Generated from Trainer
text-generation-inference
Instructions to use NovoCode/Mistral-NeuralDPO-v0.2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NovoCode/Mistral-NeuralDPO-v0.2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NovoCode/Mistral-NeuralDPO-v0.2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("NovoCode/Mistral-NeuralDPO-v0.2") model = AutoModelForCausalLM.from_pretrained("NovoCode/Mistral-NeuralDPO-v0.2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NovoCode/Mistral-NeuralDPO-v0.2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NovoCode/Mistral-NeuralDPO-v0.2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NovoCode/Mistral-NeuralDPO-v0.2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/NovoCode/Mistral-NeuralDPO-v0.2
- SGLang
How to use NovoCode/Mistral-NeuralDPO-v0.2 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 "NovoCode/Mistral-NeuralDPO-v0.2" \ --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": "NovoCode/Mistral-NeuralDPO-v0.2", "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 "NovoCode/Mistral-NeuralDPO-v0.2" \ --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": "NovoCode/Mistral-NeuralDPO-v0.2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use NovoCode/Mistral-NeuralDPO-v0.2 with Docker Model Runner:
docker model run hf.co/NovoCode/Mistral-NeuralDPO-v0.2
Commit History
-
Update README.md (#2)
Verified signature- Update README.md (9bddc2e0a16c9d5b07e12f2dd728c86fab6debf5) Co-authored-by: Lee Jackson <NeuralNovel@users.noreply.huggingface.co>8f44d8f -
Adding `safetensors` variant of this model (#1)
Verified signature- Adding `safetensors` variant of this model (d030b67fc588b85fe90a62b2506019a2b9b1b1fe) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>8c6e698 -
Upload folder using huggingface_hub
Verified signature9d48226 -
initial commit
Verified signaturef40f6fd