Instructions to use CreitinGameplays/Mistral-Nemo-12B-R1-v0.1alpha 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.1alpha 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.1alpha") 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.1alpha") model = AutoModelForCausalLM.from_pretrained("CreitinGameplays/Mistral-Nemo-12B-R1-v0.1alpha", 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.1alpha 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.1alpha" # 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.1alpha", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/CreitinGameplays/Mistral-Nemo-12B-R1-v0.1alpha
- SGLang
How to use CreitinGameplays/Mistral-Nemo-12B-R1-v0.1alpha 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.1alpha" \ --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.1alpha", "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.1alpha" \ --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.1alpha", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use CreitinGameplays/Mistral-Nemo-12B-R1-v0.1alpha with Docker Model Runner:
docker model run hf.co/CreitinGameplays/Mistral-Nemo-12B-R1-v0.1alpha
Commit History
-
update (#13)
- update (39d66fc708fe40eceb208abb1d5f7c7a14f3f460)6bd5600 -
Update generation_config.json
Verified signature1c03615 -
Update generation_config.json
Verified signaturefb5e5db -
update (#12)
- update (73f43c032b8506ef0de608cb19bf0e84eed17a88)c24fe77 -
update (#11)
- update (fdd2762e7b9ed67276ea634571410b2fe29dd790)e904b7f -
Update generation_config.json
Verified signaturebaa5129 -
Update generation_config.json
Verified signature607830e -
update (#10)
- update (277fe9802aae96433c60cd0fab09a9460f57756a)6dc3bfd -
Update generation_config.json
Verified signature77d3971 -
Update generation_config.json
Verified signature26041c8 -
Update generation_config.json
Verified signature1245f88 -
update (#9)
- update (563c5e88d711d1c1bbdb2adab3b6ffc6e6031866)eedae06 -
Update generation_config.json
Verified signatureb92f1c0 -
update (#8)
- update (99bfb8195017adbf044bb23c9dff8caf7c4a3de0)8f6ef59 -
Update generation_config.json
Verified signatureab200d7 -
Update generation_config.json
Verified signature75c6d57 -
Update generation_config.json
Verified signaturebe97d71 -
update (#7)
- update (e09f430908a2b9e979c90ed1cd1954105c9ee3dc)8ae85b5 -
updates (#6)
- updates (70819c24e68c70b94916969b113fa655039ec885)97d739b -
update (#5)
- update (7b91a35de7d97f15f897b4a84245a77830acb773)53a106b -
Update generation_config.json
Verified signature67bf1a7 -
Update generation_config.json
Verified signature3820a72
-
Update generation_config.json
Verified signaturec912508 -
update (#4)
Verified signature- update (cc9e0bd4ec9fa135a24807efd7e16debc44c4bee)4c2eed3 -
update (#3)
Verified signature- update (dbcac99e8cd66d57c5cd72907abb39a799d476f2)9fa7e26 -
Update generation_config.json
Verified signature89db55a -
Update tokenizer_config.json
Verified signature29b44b9 -
Update generation_config.json
Verified signature28d698a -
update (#2)
Verified signature- update (b8fafa9c22768a259a170958a47532578bf8136a)dec7c80 -
Update generation_config.json
Verified signature01bb5c0
-
Update README.md
Verified signature48679ba
-
Update README.md
Verified signature9436bbf -
update the chat template (#1)
Verified signature- update the chat template (d883e11cba25875234cf59444457a313bd38d942)1b76194 -
Create README.md
Verified signaturec6b329b -
Upload folder using huggingface_hub
Verified signatureeb4c27c -
initial commit
Verified signature92a82f4