Raptor X
Collection
Raptor X: Advanced UI Coder, Reasoning and General-Purpose Coder, and Math LLM
•
6 items
•
Updated
•
1
Non-Reasoning
Raptor-X2 is based on the Qwen 2.5 14B modality architecture, designed to enhance the reasoning capabilities of 14B-parameter models. This model is optimized for advanced mathematical explanations, scientific reasoning, and general-purpose coding. It excels in contextual understanding, logical deduction, and multi-step problem-solving. Raptor-X2 has been fine-tuned using a long chain-of-thought reasoning model and specialized datasets to improve comprehension, structured responses, and conversational intelligence.
Key improvements include:
Here is a code snippet with apply_chat_template to show you how to load the tokenizer and model and generate content:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "prithivMLmods/Raptor-X2"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
prompt = "Explain the fundamental theorem of calculus."
messages = [
{"role": "system", "content": "You are a helpful assistant capable of answering a wide range of questions."},
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(
**model_inputs,
max_new_tokens=512
)
generated_ids = [
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
Base model
prithivMLmods/Megatron-Opus-14B-Exp