Text Generation
Transformers
PyTorch
Safetensors
mistral
Generated from Trainer
text-generation-inference
Instructions to use Novocoders/Mistral-NeuralDPO-v0.4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Novocoders/Mistral-NeuralDPO-v0.4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Novocoders/Mistral-NeuralDPO-v0.4")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Novocoders/Mistral-NeuralDPO-v0.4") model = AutoModelForCausalLM.from_pretrained("Novocoders/Mistral-NeuralDPO-v0.4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Novocoders/Mistral-NeuralDPO-v0.4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Novocoders/Mistral-NeuralDPO-v0.4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Novocoders/Mistral-NeuralDPO-v0.4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Novocoders/Mistral-NeuralDPO-v0.4
- SGLang
How to use Novocoders/Mistral-NeuralDPO-v0.4 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 "Novocoders/Mistral-NeuralDPO-v0.4" \ --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": "Novocoders/Mistral-NeuralDPO-v0.4", "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 "Novocoders/Mistral-NeuralDPO-v0.4" \ --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": "Novocoders/Mistral-NeuralDPO-v0.4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Novocoders/Mistral-NeuralDPO-v0.4 with Docker Model Runner:
docker model run hf.co/Novocoders/Mistral-NeuralDPO-v0.4
Adding Evaluation Results
#2
by leaderboard-pr-bot - opened
README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
-
base_model: mistralai/Mistral-7B-v0.1
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
|
|
|
| 6 |
model-index:
|
| 7 |
- name: out
|
| 8 |
results: []
|
|
@@ -129,3 +129,17 @@ The following hyperparameters were used during training:
|
|
| 129 |
- Pytorch 2.2.0+cu121
|
| 130 |
- Datasets 2.17.1
|
| 131 |
- Tokenizers 0.15.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
| 3 |
tags:
|
| 4 |
- generated_from_trainer
|
| 5 |
+
base_model: mistralai/Mistral-7B-v0.1
|
| 6 |
model-index:
|
| 7 |
- name: out
|
| 8 |
results: []
|
|
|
|
| 129 |
- Pytorch 2.2.0+cu121
|
| 130 |
- Datasets 2.17.1
|
| 131 |
- Tokenizers 0.15.0
|
| 132 |
+
|
| 133 |
+
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
|
| 134 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_Novocoders__Mistral-NeuralDPO-v0.4)
|
| 135 |
+
|
| 136 |
+
| Metric |Value|
|
| 137 |
+
|---------------------------------|----:|
|
| 138 |
+
|Avg. |63.85|
|
| 139 |
+
|AI2 Reasoning Challenge (25-Shot)|66.04|
|
| 140 |
+
|HellaSwag (10-Shot) |85.18|
|
| 141 |
+
|MMLU (5-Shot) |63.57|
|
| 142 |
+
|TruthfulQA (0-shot) |51.32|
|
| 143 |
+
|Winogrande (5-shot) |80.11|
|
| 144 |
+
|GSM8k (5-shot) |36.85|
|
| 145 |
+
|