Instructions to use CultriX/MistralTrix-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CultriX/MistralTrix-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CultriX/MistralTrix-v1")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("CultriX/MistralTrix-v1") model = AutoModelForCausalLM.from_pretrained("CultriX/MistralTrix-v1") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use CultriX/MistralTrix-v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CultriX/MistralTrix-v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CultriX/MistralTrix-v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/CultriX/MistralTrix-v1
- SGLang
How to use CultriX/MistralTrix-v1 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 "CultriX/MistralTrix-v1" \ --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": "CultriX/MistralTrix-v1", "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 "CultriX/MistralTrix-v1" \ --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": "CultriX/MistralTrix-v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use CultriX/MistralTrix-v1 with Docker Model Runner:
docker model run hf.co/CultriX/MistralTrix-v1
Contaminated?
The intel neural chat data includes GSM8k, which is also part of the leaderboard test.
Hence this model is contaminated, the benchmark results are not reliable.
Regardless of any test sets leaking into the training data and inflating that score, this model's still a respectable effort.
https://huggingface.co/datasets/Intel/neural-chat-dataset-v2
which appears to be the latest Intel neuralchat data that I could find, contains
https://huggingface.co/datasets/TigerResearch/tigerbot-gsm-8k-en
which contains 8.79k rows, i.e., the full GSM 8k data set, including test.
This would explain the high performance in the GSM8k benchmark.
But of course I do not know exactly what was used here, but the author mentions neuralchat.
[https://huggingface.co/datasets/Intel/neural-chat-dataset-v2](https://huggingface.co/datasets/Intel/neural-chat-dataset-v2
which appears to be the latest Intel neuralchat data that I could find)
That dataset wasn't used here (those are instruction tuning data).
The author made the whole code available as colab:
https://huggingface.co/CultriX/MistralTrix-v1/blob/main/MistralTrix.ipynb
You can see that it's this dataset he's loading (which is a completely different DPO fine-tuning dataset):
https://huggingface.co/datasets/Intel/orca_dpo_pairs
# Load dataset
dataset = load_dataset("Intel/orca_dpo_pairs")['train']
According to the colab, it is based not on pure mistral, but on
model_name = "zyh3826/GML-Mistral-merged-v1"
which is supposedly a mix of quantumaikr/quantum-v0.01 and mncai/mistral-7b-dpo-v5, neither of which appears to have documented training.
So it might still be contaminated, the performance is suspicious.
Both of these models are flagged, with a link to https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard/discussions/474