Downloads · 30 days
9
10% of all-time downloads
vkaarti/recursive-reasoner-planner-llama3.1-8b
recursive-reasoner-planner-llama3.1-8b is a machine learning model from vkaarti. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as llama3.1.
A fine-tuned version of meta-llama/Llama-3.1-8B-Instruct for planning in recursive reasoning systems.
Downloads · 30 days
9
10% of all-time downloads
All-time downloads
91
Public
Parameters
8B
16.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.1 GB · 100%
From the Hugging Face model README
A fine-tuned version of meta-llama/Llama-3.1-8B-Instruct for planning in recursive reasoning systems.
This model serves as a planner that analyzes math problems and decides whether to:
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("vkaarti/recursive-reasoner-planner-llama3.1-8b")
tokenizer = AutoTokenizer.from_pretrained("vkaarti/recursive-reasoner-planner-llama3.1-8b")
prompt = '''Analyze this math problem and decide how to solve it:
Problem: Janet's ducks lay 16 eggs per day. She eats three for breakfast every morning and bakes muffins for her friends every day with four. She sells the remainder at the farmers' market daily for $2 per fresh duck egg. How much in dollars does she make every day at the farmers' market?
Your task:
1. Decide if this problem should be decomposed into subproblems or solved directly
2. If decomposing: identify 2-3 distinct calculation steps as subproblems
3. Explain your approach briefly
Return ONLY valid JSON:
{
"should_decompose": true/false,
"subproblems": ["step 1", "step 2", ...] or [] if atomic,
"plan": "Brief explanation of approach"
}'''
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
The model outputs JSON with:
should_decompose: Boolean indicating whether to break down the problemsubproblems: List of subproblem descriptions (if decomposing)plan: Brief explanation of the approach