Live data from Hacker News

Good results fine tuning a local LLM like Qwen 3:0.6B to categorize questions

teachmecoolstuff.com

51–54 of 54 posts

Re: Good results fine tuning a local LLM like Qwen 3:0.6B to categorize questions

#51
post #21

Earlier quoted context omitted.

Hmm maybe. Turns out the author trained a logistic-regression classifier on the embeddings too, but didn't report the results: https://github.com/thelgevold/fine-tuned-classifier/blob/mai...

Expanding on this experiment using logistic regression is an interesting continuation, detailed here: https://www.teachmecoolstuff.com/viewarticle/using-logistic-... In summary: Using logistic regression actually improves accuracy, but also performance during both runtime and during training.

Is that overfitted?

Do 5-fold cross validation, maybe stratified.

Re: Good results fine tuning a local LLM like Qwen 3:0.6B to categorize questions

#52
post #51

Earlier quoted context omitted.

Expanding on this experiment using logistic regression is an interesting continuation, detailed here: https://www.teachmecoolstuff.com/viewarticle/using-logistic-... In summary: Using logistic regression actually improves accuracy, but also performance during both runtime and during training.

Is that overfitted? Do 5-fold cross validation, maybe stratified.

It's the same dataset as the original experiment, but could be interesting to dig into it more.

Re: Good results fine tuning a local LLM like Qwen 3:0.6B to categorize questions

#53
post #8

> The model invents new categories (e.g. apartments) and doesn’t stick to the provided list of allowed categories Can this specific failure mode be solved by providing a grammar that the output must adhere to? (Not sure if Qwen has this feature, it's used for eg. to ensure the output is parseable json)

It can. It's something that is implemented by the thing that runs the model - eg Llama.cpp - rather than the model itself. Note that it is hard to make work if you turn thinking on because the grammar gets complicated quickly (I don't recall if Qwen 0.6B can do thinking).

Just one question. If I'm running a local model, can I do something other than just a context free grammar? Does it makes sense to have something more general, or it would be just too slow?

I guess the only hard constraint is to not have backtracking, right? To not waste previously emitted tokens

Post reply on HN