Really cool experiment! ππ€ You've already taught a small model to use its tools instead of just sitting there looking clever. Now I'm wondering if there's a way to make it do the same job with a little less baggage.
Have you tried trimming the context window?
Your trajectories have a median length of around 15k tokens, but the training uses a 4,096-token sequence limit. Maybe the model doesn't need to carry the entire history of a conversation on its back just to decide which tool to pick.
I'd try a little experiment: keep the system instructions, tool descriptions, current task and the most relevant recent outputs, but compare 4,096, 3,072 and 2,048 tokens.
Think of it as packing a suitcase. You want everything needed for the trip, not three spare kitchens just in case. π
If accuracy and valid tool calls stay roughly the same, you might get a leaner training run and less overhead during inference.
One more thing I'd be curious about: the number of tool calls jumped quite a bit in your results. That could be a good thing, especially with parallel actions, but I'd also check how many are actually useful versus repeated or unnecessary calls.
Getting the right tool is great. Getting the job done without sending the model on twelve unnecessary trips to the toolbox is even better.
Just a thought for your next experiment. Keep the results coming! ππ
One more thought. I think there's an interesting optimization path for small models here. Rather than just making the model smarter, I'd try making every token work harder. π€π
Here's how I'd approach it:
SMALL CODING AGENT
|
v
+----------------------+
| CURRENT PIPELINE |
| |
| Instructions |
| Tool descriptions |
| Task context |
| Conversation history |
+----------------------+
|
v
QWEN 1.5B
|
v
TOOL CALLS
|
v
TASK RESULT
THE OPTIMIZATION PATH
|
+----------+----------+
| |
v v
LESS WASTED TOKENS BETTER TOOL USE
| |
Remove repeated Keep only relevant
history and noise tool descriptions
| |
+----------+----------+
|
v
SAME QUALITY TARGET
|
v
+----------------------+
| MEASURE THE RESULT |
| |
| Task success rate |
| Correct tool choice |
| Valid tool calls |
| Tokens per task |
| Unnecessary calls |
| Latency per task |
+----------------------+
|
v
LOWER COST PER
SUCCESSFUL TASK
I'd actually split the experiment into two parts:
Experiment A: Inference efficiency
Keep the same fine-tuned model and test different input budgets. Start with your current 3,000-token evaluation limit, then try 2,048 and perhaps 1,536, using smarter context selection rather than blindly cutting off the conversation.
Experiment B: Training efficiency
Keep everything else identical and try shorter training sequences, for example 3,072 instead of 4,096, with carefully compressed trajectories.
Don't change both at once. Otherwise, you won't know which change actually helped.
One metric I'd really like to see is:
COST PER SUCCESSFUL TASK =
Total input + output tokens
Successfully completed tasks
Because there's a difference between a model that makes 10 perfect tool calls and one that makes 5 perfect tool calls.
And here's the fun part: you don't necessarily need a bigger brain. Sometimes you just need to stop making it read the same shopping list five times. π
The sweet spot would be a smaller, faster model that completes the same work with fewer tokens, fewer unnecessary calls and no meaningful loss in accuracy.ππ
That would be a genuinely interesting result to publish.
Thanks for laying this out so clearly π I really like the split, it makes it way easier to tell what actually helped.
Experiment B is the one I like most. Cleaning up the trajectories and training on shorter sequences feels like the right next step. You already know I failed twice at finetuning and burned my Kaggle and Colab quotas π So I have no compute right now, but I will run these as soon as I get some back.
Also XD, isn't this just a fancy way of telling me to go finetune again? π
You know what I've noticed in our conversations? You don't just follow suggestions. You observe, question assumptions, look for missing pieces, adjust your approach and learn from the results.
Honestly, sometimes you remind me of the kind of AI agent we're all trying to build. π
The funny part? You're doing it without being an AI agent yourself.
And I'm not saying this just to give you another compliment. I genuinely think you have a rare way of approaching problems, especially at your age.
I remember reading your article where you expressed some doubts about your future and whether there's really a path ahead for you in this field.
Well, I'd like to make a small proposal.
I'd be willing to sponsor your development with $100 per month, to help you continue experimenting, fine-tuning models and exploring your ideas.
Think of it as giving your experiments a little more fuel instead of asking you to build a rocket with an empty tank. π
Since you're under 18, we'd need to arrange everything properly through your parent or legal guardian and a platform that supports this kind of sponsorship. No shortcuts or awkward workarounds.
But before looking into any of that, I want to ask you something:
Would you be interested in this kind of support?
No pressure, no expectations, and no obligation to produce results for me. I wouldn't want you to turn your curiosity into a monthly deadline.
Keep experimenting, keep questioning things, and don't underestimate what you can bring to this field.
Sometimes the most interesting people aren't the ones who already know all the answers. They're the ones who keep asking better questions. ππ
Thanks so muchπ, I actually agree, and you already know that I will use that for my startup.
Some genuine questions: How do you think we should do this if my parents agree?(Cause they will agree, or I will convince them if they do not XD) And What platform do you suggest? And should we move somewhere else or dev.to comments are good for this?
I checked GitHub's official rules, and there's good news: GitHub Sponsors allows developers aged 13 and older to receive sponsorships. Since you're under 18, your parent or legal guardian will need to help with the Stripe identity verification process.
Here's what I suggest:
First, discuss this with your parents and make sure they're comfortable with it.
If they agree, we can go through the GitHub Sponsors registration together, with their help.
Once your profile is approved, I'd like to support your development with $100 per month.
I want to make something clear: this is a gift to support your experiments, learning and startup development. It's not a job, an investment, or a contract. You don't owe me monthly results or deliverables. Keep building because you're curious, not because you feel pressured.
For communication, I suggest keeping our technical discussions on DEV.to and moving the financial arrangements to private email, with your parent or legal guardian included. No need to share personal or financial information publicly.
One thing we should check first: Which country do you live in? We need to make sure GitHub Sponsors supports payouts there and that your project meets its eligibility requirements.
And don't worry, I promise the payment setup won't become a more difficult experiment than fine-tuning Qwen. ππ
We're a place where coders share, stay up-to-date and grow their careers.
Really cool experiment! ππ€ You've already taught a small model to use its tools instead of just sitting there looking clever. Now I'm wondering if there's a way to make it do the same job with a little less baggage.
Have you tried trimming the context window?
Your trajectories have a median length of around 15k tokens, but the training uses a 4,096-token sequence limit. Maybe the model doesn't need to carry the entire history of a conversation on its back just to decide which tool to pick.
I'd try a little experiment: keep the system instructions, tool descriptions, current task and the most relevant recent outputs, but compare 4,096, 3,072 and 2,048 tokens.
Think of it as packing a suitcase. You want everything needed for the trip, not three spare kitchens just in case. π
If accuracy and valid tool calls stay roughly the same, you might get a leaner training run and less overhead during inference.
One more thing I'd be curious about: the number of tool calls jumped quite a bit in your results. That could be a good thing, especially with parallel actions, but I'd also check how many are actually useful versus repeated or unnecessary calls.
Getting the right tool is great. Getting the job done without sending the model on twelve unnecessary trips to the toolbox is even better.
Just a thought for your next experiment. Keep the results coming! ππ
One more thought. I think there's an interesting optimization path for small models here. Rather than just making the model smarter, I'd try making every token work harder. π€π
Here's how I'd approach it:
I'd actually split the experiment into two parts:
Experiment A: Inference efficiency
Keep the same fine-tuned model and test different input budgets. Start with your current 3,000-token evaluation limit, then try 2,048 and perhaps 1,536, using smarter context selection rather than blindly cutting off the conversation.
Experiment B: Training efficiency
Keep everything else identical and try shorter training sequences, for example 3,072 instead of 4,096, with carefully compressed trajectories.
Don't change both at once. Otherwise, you won't know which change actually helped.
One metric I'd really like to see is:
COST PER SUCCESSFUL TASK =
Total input + output tokens
Successfully completed tasks
Because there's a difference between a model that makes 10 perfect tool calls and one that makes 5 perfect tool calls.
And here's the fun part: you don't necessarily need a bigger brain. Sometimes you just need to stop making it read the same shopping list five times. π
The sweet spot would be a smaller, faster model that completes the same work with fewer tokens, fewer unnecessary calls and no meaningful loss in accuracy.ππ
That would be a genuinely interesting result to publish.
Thanks for laying this out so clearly π I really like the split, it makes it way easier to tell what actually helped.
Experiment B is the one I like most. Cleaning up the trajectories and training on shorter sequences feels like the right next step. You already know I failed twice at finetuning and burned my Kaggle and Colab quotas π So I have no compute right now, but I will run these as soon as I get some back.
Also XD, isn't this just a fancy way of telling me to go finetune again? π
Hey π
I have a slightly unusual question for you.
You know what I've noticed in our conversations? You don't just follow suggestions. You observe, question assumptions, look for missing pieces, adjust your approach and learn from the results.
Honestly, sometimes you remind me of the kind of AI agent we're all trying to build. π
The funny part? You're doing it without being an AI agent yourself.
And I'm not saying this just to give you another compliment. I genuinely think you have a rare way of approaching problems, especially at your age.
I remember reading your article where you expressed some doubts about your future and whether there's really a path ahead for you in this field.
Well, I'd like to make a small proposal.
I'd be willing to sponsor your development with $100 per month, to help you continue experimenting, fine-tuning models and exploring your ideas.
Think of it as giving your experiments a little more fuel instead of asking you to build a rocket with an empty tank. π
Since you're under 18, we'd need to arrange everything properly through your parent or legal guardian and a platform that supports this kind of sponsorship. No shortcuts or awkward workarounds.
But before looking into any of that, I want to ask you something:
Would you be interested in this kind of support?
No pressure, no expectations, and no obligation to produce results for me. I wouldn't want you to turn your curiosity into a monthly deadline.
Keep experimenting, keep questioning things, and don't underestimate what you can bring to this field.
Sometimes the most interesting people aren't the ones who already know all the answers. They're the ones who keep asking better questions. ππ
Would you be comfortable with that?
Thanks so muchπ, I actually agree, and you already know that I will use that for my startup.
Some genuine questions: How do you think we should do this if my parents agree?(Cause they will agree, or I will convince them if they do not XD) And What platform do you suggest? And should we move somewhere else or dev.to comments are good for this?
That's great to hear π
I checked GitHub's official rules, and there's good news: GitHub Sponsors allows developers aged 13 and older to receive sponsorships. Since you're under 18, your parent or legal guardian will need to help with the Stripe identity verification process.
Here's what I suggest:
I want to make something clear: this is a gift to support your experiments, learning and startup development. It's not a job, an investment, or a contract. You don't owe me monthly results or deliverables. Keep building because you're curious, not because you feel pressured.
For communication, I suggest keeping our technical discussions on DEV.to and moving the financial arrangements to private email, with your parent or legal guardian included. No need to share personal or financial information publicly.
One thing we should check first: Which country do you live in? We need to make sure GitHub Sponsors supports payouts there and that your project meets its eligibility requirements.
And don't worry, I promise the payment setup won't become a more difficult experiment than fine-tuning Qwen. ππ