-
Mathematical Reasoning Enhancements:
Equipped with advanced capabilities in handling mathematical logic, symbolic computation, step-by-step problem-solving, and numerical accuracy across topics from basic arithmetic to higher-order mathematics.
-
Coding and Debugging Proficiency:
Improved performance in code generation, understanding documentation, and identifying and correcting bugs in multiple programming languages, especially Python, JavaScript, and C++. It supports functional, object-oriented, and scripting paradigms.
-
Intelligent Error Correction:
Capable of identifying inconsistencies or errors in logical reasoning, structured formats (JSON, XML), and code outputs, with suggestions and auto-corrections.
-
Enhanced Instruction Following:
Fine-tuned for following complex, nested instructions with increased precision and coherence over extended prompts and interactions.
-
Long-Context Support:
Supports up to 128K tokens for input context and can generate up to 8K tokens in one output, making it well-suited for extended problem solving, document generation, and analysis.
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_name = "prithivMLmods/Fomalhaut-QwenR-1.5B"
4
5model = AutoModelForCausalLM.from_pretrained(
6 model_name,
7 torch_dtype="auto",
8 device_map="auto"
9)
10tokenizer = AutoTokenizer.from_pretrained(model_name)
11
12prompt = "Explain the difference between breadth-first search and depth-first search with Python code examples."
13messages = [
14 {"role": "system", "content": "You are a knowledgeable assistant skilled in reasoning, coding, and explanation."},
15 {"role": "user", "content": prompt}
16]
17text = tokenizer.apply_chat_template(
18 messages,
19 tokenize=False,
20 add_generation_prompt=True
21)
22model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
23
24generated_ids = model.generate(
25 **model_inputs,
26 max_new_tokens=512
27)
28generated_ids = [
29 output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
30]
31
32response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
-
Mathematics and Computation:
Effective for solving math problems, verifying formulas, symbolic logic, algebraic reasoning, and analytical computations.
-
Programming Assistance:
Ideal for generating, explaining, and debugging code. Suitable for both learning and software development use cases.
-
Educational and Informational Support:
Provides accurate, well-explained answers to conceptual and applied questions in STEM and humanities.
-
Conversational AI and Reasoning Agents:
Designed for intelligent chatbots capable of nuanced reasoning, error correction, and structured dialogue.
-
Multilingual & Global Applications:
Useful for translation, multilingual support bots, and cross-lingual content generation.
-
Long-Form & Structured Content Generation:
Can create long documents, reports, and structured outputs like JSON, Markdown, and tabular formats.
-
Hardware Requirements:
While lighter than 14B models, it still benefits from modern GPUs/TPUs for inference due to long-context handling.
-
Real-Time Limitations:
No real-time awareness; knowledge is limited to training data.
-
Bias and Hallucination:
While reduced, some bias and hallucinations from training data may persist.
-
Creative Consistency:
Variability in outputs for creative or ambiguous queries (e.g., fiction, storytelling).
-
Prompt Sensitivity:
Results may vary significantly depending on the structure and clarity of the input prompt.