Text Generation
Transformers
Safetensors
English
mistral
conversational
text-generation-inference
How to use from the
Use from the
Transformers library
# 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)
# 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")
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=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Run the model:

import torch
from transformers import pipeline

model_id = "CreitinGameplays/Mistral-Nemo-12B-R1-v0.1alpha"
pipe = pipeline(
    "text-generation",
    model=model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto",
)
messages = [
    {"role": "user", "content": "How many r's are in strawberry?"},
]
outputs = pipe(
    messages,
    temperature=0.8,
    top_p=1.0,
    top_k=50,
    max_new_tokens=4096,
)
print(outputs[0]["generated_text"][-1])
Downloads last month
23
Safetensors
Model size
12B params
Tensor type
F16
·
Inference Providers NEW
Input a message to start chatting with CreitinGameplays/Mistral-Nemo-12B-R1-v0.1alpha.

Model tree for CreitinGameplays/Mistral-Nemo-12B-R1-v0.1alpha

Finetuned
(210)
this model
Quantizations
2 models

Datasets used to train CreitinGameplays/Mistral-Nemo-12B-R1-v0.1alpha

Collection including CreitinGameplays/Mistral-Nemo-12B-R1-v0.1alpha