Text Generation
Transformers
Safetensors
English
mistral
text-generation-inference
unsloth
conversational
Instructions to use CreitinGameplays/Mistral-Nemo-12B-R1-v0.4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CreitinGameplays/Mistral-Nemo-12B-R1-v0.4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CreitinGameplays/Mistral-Nemo-12B-R1-v0.4") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("CreitinGameplays/Mistral-Nemo-12B-R1-v0.4") model = AutoModelForCausalLM.from_pretrained("CreitinGameplays/Mistral-Nemo-12B-R1-v0.4", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use CreitinGameplays/Mistral-Nemo-12B-R1-v0.4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CreitinGameplays/Mistral-Nemo-12B-R1-v0.4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CreitinGameplays/Mistral-Nemo-12B-R1-v0.4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/CreitinGameplays/Mistral-Nemo-12B-R1-v0.4
- SGLang
How to use CreitinGameplays/Mistral-Nemo-12B-R1-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 "CreitinGameplays/Mistral-Nemo-12B-R1-v0.4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CreitinGameplays/Mistral-Nemo-12B-R1-v0.4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "CreitinGameplays/Mistral-Nemo-12B-R1-v0.4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CreitinGameplays/Mistral-Nemo-12B-R1-v0.4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use CreitinGameplays/Mistral-Nemo-12B-R1-v0.4 with Docker Model Runner:
docker model run hf.co/CreitinGameplays/Mistral-Nemo-12B-R1-v0.4
Commit History
-
Update README.md
Verified signature19ab13d -
remove think (#3)
- remove think (eed15be775548342a4bb56dff2cf030d9f113d99)4936cf9 -
Update README.md
Verified signaturee74f6ce -
Update README.md
Verified signature3516166 -
Update README.md
Verified signatureea6b9b3 -
fix (#2)
- fix (d710abb44c3fbe5ab9d4cd8bf1511bc1557ea40c)d65e32f -
Update README.md
Verified signature7175c30 -
Update README.md
Verified signaturee07f80a -
update (#1)
- update (f8c7ecd0edbaff21bae492b09f05a5fc7e1985f9)196a672 -
(Trained with Unsloth)
7861a3e -
Unsloth Model Card
1b4c7c5 -
(Trained with Unsloth)
5d50bdc -
(Trained with Unsloth)
ef7b3df -
(Trained with Unsloth)
47dbf44 -
(Trained with Unsloth)
26800f7 -
(Trained with Unsloth)
3e2868f -
(Trained with Unsloth)
09340d3 -
(Trained with Unsloth)
6cab10d -
Unsloth Model Card
8cfd3c5 -
initial commit
6ca94a5