HN user

danielhanchen

3,534 karma

Unsloth github.com/unslothai/unsloth - finetune Llama 2x faster + use 70% less VRAM

1. Used to work at NVIDIA RAPIDS cuML

2. Discord: https://discord.gg/unsloth

3. Github: https://github.com/danielhanchen

4. Twitter / X: x.com/danielhanchen

5. Email: my handle @ gmail.com

6. Bug fixes for Gemma: https://news.ycombinator.com/item?id=39671146

7. Bug fixes for Gradient Accumulation: https://x.com/danielhanchen/status/1846235913443262891?lang=en

Posts50
Comments586
View on HN
huggingface.co 2mo ago

Mistral Medium 3.5 YaRN bug fix

danielhanchen
1pts0
unsloth.ai 3mo ago

Gemma 4 Fine-Tuning Guide

danielhanchen
2pts0
github.com 4mo ago

Show HN: Unsloth Studio - Local Fine-tuning, Chat UI

danielhanchen
8pts2
qwen.ai 5mo ago

Qwen3.5: Towards Native Multimodal Agents

danielhanchen
434pts214
qwen.ai 5mo ago

Qwen3-Coder-Next

danielhanchen
735pts429
qwen.ai 6mo ago

Qwen-Image-2512

danielhanchen
7pts1
docs.unsloth.ai 8mo ago

Kimi K2 Thinking: How to Run Locally

danielhanchen
3pts0
thinkingmachines.ai 9mo ago

LoRA Without Regret

danielhanchen
24pts0
unsloth.ai 10mo ago

Long context GPT-OSS fine-tuning

danielhanchen
4pts1
docs.unsloth.ai 11mo ago

Show HN: GPT OSS: How to run and fine-tune

danielhanchen
2pts0
huggingface.co 11mo ago

Qwen3-30B-A3B-Instruct-2507

danielhanchen
5pts0
qwenlm.github.io 1y ago

Qwen3-Coder: Agentic coding in the world

danielhanchen
765pts366
unsloth.ai 1y ago

2.71bit DeepSeek-V3-0324

danielhanchen
1pts1
ai.google.dev 1y ago

Gemma 3: Google's new multimodal models

danielhanchen
4pts2
docs.unsloth.ai 1y ago

How to Run QwQ-32B effectively

danielhanchen
4pts3
unsloth.ai 1y ago

Train your own R1 reasoning model

danielhanchen
11pts5
docs.openwebui.com 1y ago

How to run 1.58bit DeepSeek R1 with Open WebUI

danielhanchen
37pts9
unsloth.ai 1y ago

Phi-4 Bug Fixes

danielhanchen
193pts68
twitter.com 1y ago

My take on the Post Pretraining world

danielhanchen
1pts3
unsloth.ai 1y ago

Dynamic 4bit Quantization

danielhanchen
3pts5
colab.research.google.com 1y ago

Show HN: Finetune Llama 3.2 Vision in a Colab

danielhanchen
10pts0
docs.python.org 1y ago

Python 3.11 is 1.25x faster than 3.10

danielhanchen
3pts5
huggingface.co 1y ago

Fixing Gradient Accumulation

danielhanchen
2pts0
www.lesswrong.com 1y ago

Unit Economics of LLM APIs

danielhanchen
5pts4
openreview.net 1y ago

LoRA Learns Less and Forgets Less Updated

danielhanchen
1pts1
docs.vllm.ai 1y ago

VLLM automatic prefix / prompt caching

danielhanchen
2pts1
arxiv.org 1y ago

Higher Temperatures and Min_p Sampling

danielhanchen
1pts1
colab.research.google.com 1y ago

Show HN: Open-source fine-tuning in a Colab notebook

danielhanchen
5pts0
fred.stlouisfed.org 1y ago

Sahm rule signals start of recession

danielhanchen
4pts3
www.youtube.com 1y ago

Low Level Technicals of LLMs [video]

danielhanchen
1pts1

Oh thanks :) We're also going to add MTP support soon for Qwen3.6!

95% of it is fully human done - the maths, algos, code snippets, screenshots & benchmarks are done / conducted by us and NVIDIA :)

We did use AI to fix spelling errors + made some nice plots using Chat (ours would look horrible lol)

Update - Just got rid of the spiced up intro

Hey sorry on the delay - we just added API support, so you can access a remote server - it includes optional python, tool call, bash and web search support if you enable them.

For SSH - we haven't yet done that - for now we have a SHA256 encryption approach, but it's not SSH yet. HTTPS will also sadly have to be the end user's setup process as well - we plan to make it better soon!

Hey! Sorry for not replying sooner - yes we'll keep publishing more KLD - sadly some are saying we are "optimizing" for KLD now since we posted so many haha - but the whole purpose of quantization is to match the BF16 logits as much as possible whilst reducing disk space (ie reduce KLD).

In general so this is funny and a quirk of quantization - sometimes 8bit, 4bit models do BETTER on downstream benchmarks (SWE Bench for eg), since sometimes rounding can actually somehow act as a "regularization" method (this is just my hunch).

So KLD isn't that expensive, since we leverage the trick of causal attention - since causal attention is lower triangular, we can do 1 forward pass on the enter text (say 2048 tokens), and you attain logits for the prediction for every token's position - so this is O(N^2).

However coding benchmarking require actual inference, and cannot use the causal attention trick, and it's best to run them 10 times since temperature = 1.0 is not deterministic - and take an average. We plan to maybe do something like https://marginlab.ai/trackers/claude-code/, which takes a random sample and does it over time.

Hey so sorry didn't reply sooner - yes the docker used to be I think 4-8GB ish since CUDA sadly itself is 4GB I think, and PyTorch takes the rest. So unfortunately the Unsloth Docker image has ballooned due to this. We tried reducing it as much as possible, but it's hard :( https://hub.docker.com/r/vllm/vllm-openai/tags for eg is around 11GB ish, ad we're 13.6GB ish.

We'll try our best to compress it more, but it's tough

Apologies as well didn't reply sooner - Studio supports AMD out of the box now! We worked with AMD to make it work! One thing that is still missing is pre-compiled AMD ROCM binaries, which we're trying to see if we can integrate that.

Interesting on diskpart - let me check and get back to you [EDIT] - visual studio build tools, python 3.13, git, cmake, node.js are all msi-based installers - so these are likely the culprits on using diskpart - essentially MSI installers check if there's enough disk space before installing items

Oh my apologies I didn't respond - if only HN had a notifier haha

Oh yes we added a custom folder button which can pull .gguf files for now from any folder - it supports LM Studio and Ollama ones - but afreed it's still a mess.

One of the goals is to somehow quick search for .gguf folders, and add recommended folders - we currently have folders for Ollama and LM Studio for eg

We made Unsloth Studio which should help :)

1. Auto best official parameters set for all models

2. Auto determines the largest quant that can fit on your PC / Mac etc

3. Auto determines max context length

4. Auto heals tool calls, provides python & bash + web search :)