# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("tngtech/OLMo-2-Instruct-Math-32B")
model = AutoModelForCausalLM.from_pretrained("tngtech/OLMo-2-Instruct-Math-32B")
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
TNG Technology Consulting fine-tuned the 32-billion-parameter OLMo-2 Large Language Model using AMD's MI300X GPUs and the Open R1 dataset, focusing on enhancing the model's reasoning capabilities. The MI300X accelerators, with their multi-chip module architecture and substantial memory bandwidth, facilitated efficient handling of the model's training requirements. The Open R1 dataset, curated by Hugging Face, provided a comprehensive collection of mathematical problems with detailed reasoning traces, serving as an ideal foundation for this fine-tuning endeavor. This collaborative effort underscores the potential of open-source initiatives and advanced hardware in advancing AI research.
- Downloads last month
- 18
Model tree for tngtech/OLMo-2-Instruct-Math-32B
Base model
allenai/OLMo-2-0325-32B Finetuned
allenai/OLMo-2-0325-32B-SFT Finetuned
allenai/OLMo-2-0325-32B-DPO Finetuned
allenai/OLMo-2-0325-32B-Instruct
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tngtech/OLMo-2-Instruct-Math-32B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)