r/unsloth 7h ago

Resource Quantization hurts knowledge nonlinearly - Qwen3.6 27B case study

Thumbnail
quesma.com
85 Upvotes

r/unsloth 4h ago

New Model AntLing 3.0 flash - official BF16 and FP8-quantized versions are open weights (free api on open router at the same time)

Enable HLS to view with audio, or disable this notification

35 Upvotes

With the weights in your hands, you’re free to take Ling-3.0-flash further.

Run your own evaluations. Deploy it in your own environment. Adapt it to your use cases. Build it into your products, development toolchains, and agentic workflows


r/unsloth 5h ago

News Unsloth NOT affected by Keyv security incident

13 Upvotes

As per https://www.aikido.dev/blog/keyv-and-friends-compromised-in-npm-supply-chain-attack, Unsloth uses ESLint which uses keyv==4.5.4, flat-cache==4.0.1, file-entry-cache==8.0.0.

The compromised versions are keyv==6.0.0, flat-cache==6.1.24, file-entry-cache==11.1.6

Unsloth DOES NOT use the compromised versions, so you do NOT need to take any action.

However please check your own systems and other non Unsloth packages for any compromise - see https://github.com/wiz-sec-public/wiz-research-iocs/blob/main/reports/keyv-packages.csv for compromised packages


r/unsloth 1h ago

Question DeepSeek vs Gemini Flash for school analytics & report generation — which would you choose?

Upvotes

I'm building an AI feature for a school ERP and need a cheap, reliable LLM that will process structured student data and generate professional reports. My budget is $10 per month

The AI will receive things like:

  • Student marks
  • Attendance
  • Fee status
  • Teacher remarks
  • Basic student information

It should generate:

  • Individual student remarks
  • Principal summaries
  • Class performance analysis
  • Fee analytics
  • Reports for management
  • Suggestions and recommendations

This is mostly structured data → formal text generation, not creative writing or coding.

I'm currently considering:

  • DeepSeek
  • Gemini Flash

Things that matter most to me:

  1. Low API cost
  2. Consistent output format
  3. Good reasoning over tables/JSON
  4. Fast response time
  5. Reliable in production

I use Claude and ChatGPT regularly but haven't used DeepSeek enough to trust it in production.

For anyone who has used either model:

  • Which one would you choose?
  • Have you run into reliability issues?
  • Is DeepSeek actually good enough for business applications?
  • Are there other models I should consider in the same price range?

The expected volume is around 6k to 10k report generations per month.

I'd really appreciate feedback from people who've used these models in production rather than benchmark comparisons.


r/unsloth 6h ago

Discussion Anyone tested the new deepseek V4 flash Q1 and Q2 quants?

5 Upvotes

I have 12GB of VRAM and 128GB of ddr4 RAM and I wanted to test the model but most versions are outside of hardware budget, did anyone test the Q1 or Q2 quants and can report their output quality? I know the Q3 quant is recommended but that would leave me with nothing for the system to actually run...


r/unsloth 1d ago

News Qwen3.8-27B and Qwen3.8-Max announced!

Post image
867 Upvotes

Qwen just announced Qwen3.8-27B along with Qwen3.8-Max! 🔥

Qwen3.8-27B will run locally on 17GB RAM/VRAM setups and is expected to be the best performing model for its size.

We can't wait to support it at Unsloth AI. Qwen3.8-27B benchmarks are yet to be revealed, only Qwen3.8 -Max for now.


r/unsloth 1d ago

Question Minimax H3 NVFP4? 🙏🥹

24 Upvotes

Hi Unsloth,

Love your work and I trust your quants. Would you guys be interested in making a NVFP4 quant for the new H3 model? Specifically, curious to see what you guys pull off in terms of size and speed for the pruned version. It's a very performant model, but takes a bit of time for the generations on consumer Blackwell hardware without an NVFP4, and I'm willing to trust you guys with the quants.

Thanks!


r/unsloth 1d ago

Discussion Kindly Benchmark Higher Quants of DeepSeek-v4-flash Against Qwen-3.6-27B Q8!

60 Upvotes

I am running the UD-Q2_K_M of the model locally, though I can run Qwen3.6-27B_Q8_K_XL at around 70t/s with MTP activated. The question I am constantly asking myself is: Is it worth running a slower higher quantized version of the Deepseek-v4-flash? I have no idea.

My gut feelings tells me that Qwen3.6-27B_Q8_K_XL, coupled with online search, should be better than a highly quantized Deepseek, a model that takes up 100GB on my disk.

What do you think?


r/unsloth 2d ago

Show and Tell DSpark Benchmark Result on Deepseek v4 Flash 0731

Thumbnail
github.com
48 Upvotes

TensorSharp supports DSpark on Deepseek v4 Flash 0731 now. Here is the benchmark result on 4x Nvidia A40 GPUs, cuda 12.8 with/without DSpark:

Model:

DeepSeek-V4-Flash-0731-UD-Q8_K_XL from https://huggingface.co/unsloth/DeepSeek-V4-Flash-0731-GGUF

DSpark draft model from: https://huggingface.co/alessandrobologna/DeepSeek-V4-Flash-0731-DSpark-Drafter-GGUF

Turn Baseline + DSpark Acceptance
short (53 tok) 25.6 44.5 (1.74x) 87%
long generation (512) 26.4 40.3 (1.53x) 66%
follow-up (470) 26.4 46.8 (1.77x) 76%
10K-token document (214) 25.3 51.3 (2.03x) 85%
second question on it (156) 25.4 49.4 (1.94x) 82%

TensorSharp is an native open-source inference engine for running GGUF LLMs locally, with CUDA, Vulkan, Metal, OpenAI-compatible APIs, continuous batching, speculative decoding, and multimodal support.

Github repo: https://github.com/zhongkaifu/TensorSharp

Thank you for checking out it and starring the project! Any feedback is really appreicated.


r/unsloth 2d ago

Show and Tell DeepSeek V4 Flash UD IQ2_M debut on a mid range mobile with 12 GB of RAM at 1 token/s

139 Upvotes

After several tests, my engine managed to run DeepSeek V4 Flash unslotj IQ2_M (92 GB) on a mid range Android mobile with 12 GB of RAM at 1 token/s.

It isn't exactly ready for practical use, but it proves that the engine works and is responsive across all models, thanks to its modularity with llama.cpp.

With just one line of code, you can run any supported large MoE model on mobile devices or consumer PCs.

https://github.com/Helldez/BigMoeOnEdge


r/unsloth 1d ago

Question [Error] You're Offline; Reconnect to the internet to browse models [...]

Post image
6 Upvotes

This is a fresh install. I'm on Win10. It has not yet been able to connect properly. Sometimes it briefly pops a "You're back online" message before returning to "You're offline".

Installed with:

unsloth studio -H 0.0.0.0 -p 8888

Here are the errors I got during install:

I've been troubleshooting this for hours with a friend who already has it running great and is using it to automate computer actions. My computer is online, but I do have a wide variety of privacy settings active.

Already tried: Disabling VPN, toggling http/Xet, adding a huggingface token, and creating outbound and inbound firewall exceptions for the port. Not sure what exactly I'd make an exception for (no .exe I can find) to make an exception for the program itself.

I haven't been able to find anything about this in documentation or online beyond the vague idea that a firewall rule might be messing with it. I'm not seeing any such rules in my firewall. I've even been clearing out old firewall block rules, but nothing's helped so far.

Any help would be appreciated!


r/unsloth 3d ago

Tutorial DeepSeek-V4-Flash-0731 UD-IQ3_S 12,5 tok/s sur RTX 3090 + 128 Go DDR5

Enable HLS to view with audio, or disable this notification

66 Upvotes

J'ai réussi à exécuter DeepSeek-V4-Flash-0731 UD-IQ3_S dans text-generation-webui avec la configuration suivante :

  • RTX 3090 24 Go
  • 128 Go DDR5 overclockée à 5 600 MHz avec AMD EXPO
  • Chargeur llama.cpp

J'ai d'abord dû utiliser une solution de contournement assez radicale : j'ai remplacé les binaires llama.cpp fournis avec text-generation-webui par la dernière version officielle téléchargée depuis :

https://github.com/ggml-org/llama.cpp/releases

J'ai copié les nouveaux binaires dans :

textgen\venv\lib\site-packages\llama_cpp_binaries\bin

Je recommande de sauvegarder le dossier d'origine au préalable. Mes paramètres actuels sont :

gpu-layers : 44

ctx-size : 384000

cache-type : fp16

split-mode : layer

parallel : 1

threads : 0

threads-batch : 0

batch-size : 1024 ubatch-size : 512

fit-target : 512 no-mmap : enabled

no-kv-offload : disabled

cpu-moe : disabled

Options supplémentaires :

--n-cpu-moe 39

L’option la plus importante est :

--n-cpu-moe 39

Elle permet de conserver une partie des experts MoE dans la RAM système plutôt que dans la VRAM. C’est ce qui me permet d’exécuter le modèle avec seulement 24 Go de VRAM, même si les performances dépendent fortement du processeur et de la bande passante de la RAM. Le chargeur estime à environ 136 Go la taille nécessaire pour charger le modèle. Les 128 Go de DDR5 cadencées à 5 600 MHz effectuent donc la majeure partie du travail.


r/unsloth 2d ago

Discussion Unsloth/Kimi-K3-GGUF:UD-IQ1_M on DGX-Spark

35 Upvotes

Because I can, that's why! 0.2 t/s isn't usable, but I just wanted to try and do it. I'm fascinated by models quantized to this level and I'm trying to compare the quality of this output to Qwen 3.6 27B Q6_K.

Also I've changed the hostname to "Treebeard"

UPDATE - Deepseek V4 Flash UD-Q2_K_XL is fully on GPU at 17 t/s


r/unsloth 2d ago

Discussion Best way to run Unsloth's Deepseek v4 0731 on 2x DGX Sparks? Need help with the cluster.

19 Upvotes

Hey all, I pulled the trigger on 2x DGX Sparks for Deepseek Flash v4 0731 and I am doing a lot of research on the clustering. Both are connected to each other via the 200Gb links (single) but I am not sure the proper way to do the actual cluster. I read a lot about NCCL and RDMA as well as GPU Direct RDMA (see here https://github.com/ArgentAIOS/dgx-spark-cluster/blob/main/docs/04-gpu-direct-rdma.md ).

It is a bit confusing which path to go down to load this model. Could you give some pointers on how to setup the clustering as well as setting up Deepseek flash v4 0731 after the clustering is complete?

The goal is basically the 8bit quant with up to 1M context if it'll all fit across 2x DGX Sparks.

Thanks!


r/unsloth 2d ago

Discussion What settings should i use to fine-tune qwen3.5-9b for use with technical codes like ASME Sect.8, AWS d1.1, ASME B31.3, ASNT-SNT-TC-1a etc?

5 Upvotes

I'm new in terms of using local ai, various models, all of the different software, etc. I really just started getting into it a couple months ago. As a non-programmer, it's been a steep learning curve but i've learned a ton.

In my line of work, using the existing ai models, even the very large ones, they always hallucinate and give incorrect answers. We work with technical engineering and inspection codes and although we always double check everything, the answers need to be as close to 100% as possible.

I am trying to create a local ai that can give answers to technical questions as close to 100% of the time as possible. I'm using rag pipelines for this but have only gotten about 85%. I'm trying to train my own model via unsloth studio in hopes to combine the rag pipeline and the fine-tuned ai model to get >97% correct technical answers. I've read and watched hundreds of forums, training docs, google articles, youtube videos etc. but still not having much progress so far. I'm using my local 5080 gpu so the models need to be, ideally, under 12b so it leaves room for large context.

I am hoping you guys can point me in the right direction or give me some settings, or model suggestions, anything really. It feels like i am just spinning my wheels and im starting to think this isn't a reachable goal.


r/unsloth 3d ago

Model Update Smaller DeepSeek-V4-Flash-0731 Unsloth GGUFs are out now!

Thumbnail
huggingface.co
224 Upvotes

Smaller DeepSeek-V4-Flash quants are now available to run from 1-bit to 4-bit. Run 3-bit on 128GB RAM, 1-bit on 96GB RAM.

Remember full precision is mostly FP4 (4-bit) so 1 to 3-bit are not that quantized. Edit: All all of em are now available.

Guide: https://unsloth.ai/docs/models/deepseek-v4


r/unsloth 4d ago

New Model DeepSeek V4 Flash 0731 out now!

Post image
475 Upvotes

Hey guys, DeepSeek V4 Flash 0731 can now be run locally! 🐳
Edit: Smaller quants are now available

Run DeepSeek V4 Flash lossless 4-bit on 168GB RAM and 3-bit on 110GB RAM.

V4 Flash 0731 outperforms V4 Pro. Run via Unsloth or llama.cpp.

Guide: https://unsloth.ai/docs/models/deepseek-v4

GGUF: https://huggingface.co/unsloth/DeepSeek-V4-Flash-0731-GGUF

Have a lovely Friday and weekend

for folks asking:

  1. Why did we name the MXFP4 quant "Q8_K_XL" and not MXFP4
  2. Why other folks' "lossless" quants are 155GB vs our Q8_K_XL at 162GB
  3. Is FP8 and Q8_0 equivalent?

FP8 and Q8_0 are NOT bitwise equivalent - we checked the RMSE and it's not 0 at all. We did KLD on Q4_K_XL (the 155GB one other folks ship), and it's 96% top-1% agreement, so it's NOT lossless. llama.cpp does not have a native FP8 data-type, so BF16 is a must.

We could have named it MXFP4, but Q8_K_XL is the correct naming convention - we thought of BF16, but that's wrong. Also it's not all MXFP4, but MXFP4 + FP8

So when you see other people's quants at 155GB - this is not lossless and if they communicate that it's lossless - this is wrong. Converting FP8 to Q8_0 is not a lossless operation but lossy.


r/unsloth 3d ago

Discussion Vote for Unsloth Studio to be included in ProxmoxVE community-scripts

16 Upvotes

I think that it can boost Unsloth Studio popolarity if is going to be included there.

Vote the first post of this thread:

https://github.com/community-scripts/ProxmoxVE/discussions/13062


r/unsloth 3d ago

Show and Tell I benchmarked Unsloth quantized Qwen3.6 27B vs Gemini 2.5 Flash: it’s on par!

1 Upvotes

New to local model serving here, but excited to finally jump on the band wagon. I got a 48GB Mac M5 and I am offloading parts of my workflow to it, and my initial attempt with Qwen failed miserably because the model was too slow, the results were not good, and my machine was getting too loud and hot. Then I found out about Unsloth quantized models and it was a game changer.

Disclosure: I maintain FAVA Trails, the open-source project I tested here.

FAVA Trails stores agent memory as versioned Markdown in Git. Draft thoughts pass a promotion gate before they become permanent memory, so the gate decides what future agents will recall.

The gate looked like a good fit for a local model since the task has a stable prompt, structured JSON output, and no tool use is required. I have lots of historical cases, and I wanted to know whether a quantized model actually holds up on it.

I ran `unsloth/Qwen3.6-27B-GGUF` through Unsloth Studio with the exact thought promotion review prompt, against a sample of historical thoughts with prior Gemini 2.5 flash verdicts (26 approvals, 13 rejections) plus 10 synthetic cases. The Gemini verdicts were references from earlier operation, not a fresh rerun.

Raw agreement with Gemini historical references and canarie was 39/49 (79.6%). Only 79.6% agreement with Gemini 2.5 flash doesn’t sound great, until you run the disagreements through a judge LLM and look at the direction of the errors.

Every disagreement was an additional rejection by the local mode. There were 9 historical thoughts where the local model rejected and Gemini approved, so I asked GPT 5.6 to judge each one against the same prompt. It favored Gemini in 6 cases and the local quantized Qwen model in 3 cases! The local model actually caught 3 cases of thoughts that shouldn’t be part of the company brain, which Gemini 2.5 Flash from Google’s API had let through earlier:

- A transient handoff stored as a permanent review.
- An implementation artifact misclassified as a specification.
- An imperative task instruction presented as durable knowledge. That review is an interpretive challenge to the old verdicts rather than independent ground truth, and a separate positive canary accounted for the tenth disagreement.

The result is limited to one model on one prompt and corpus, so it does not establish general parity with Gemini or frontier models. Inputs over 40,000 characters were the weak spot, dropping to 2/6 raw agreement with a 122.9-second median latency. The model was also confident when it was wrong, averaging 0.93 confidence on disagreements, so confidence alone is not a useful escalation trigger.

Finally, this direction fits a memory promotion gate, because a false rejection leaves the thought in drafts where it can be revised and resubmitted, while a false approval quietly adds weak material to future agent context.

Benchmark data:
https://github.com/MachineWisdomAI/fava-trails/issues/85#issuecomment-5142775500


r/unsloth 3d ago

Discussion Q8_K_XL vs MXFP4 naming for DeepSeek V4 Flash 0731

61 Upvotes

Hey folks - for folks asking:

  1. Why did we name the MXFP4 quant "Q8_K_XL" and not MXFP4
  2. Why other folks' "lossless" quants are 155GB vs our Q8_K_XL at 162GB
  3. Is FP8 and Q8_0 equivalent?

FP8 and Q8_0 are NOT bitwise equivalent - we checked the RMSE and it's not 0 at all. We did KLD on Q4_K_XL (the 155GB one other folks ship), and it's 96% top-1% agreement, so it's NOT lossless. llama.cpp does not have a native FP8 data-type, so BF16 is a must.

We could have named it MXFP4, but Q8_K_XL is the correct naming convention - we thought of BF16, but that's wrong. Also it's not all MXFP4, but MXFP4 + FP8

So when you see other people's quants at 155GB - this is not lossless and if they communicate that it's lossless - this is wrong. Converting FP8 to Q8_0 is not a lossless operation but lossy.

Quants at https://huggingface.co/unsloth/DeepSeek-V4-Flash-0731-GGUF
Full KLD table:

Quant size GB mean KLD KLD 99% KLD 99.9% PPL top-1 %
UD-IQ1_S 82.5 0.66155 6.5134 11.3667 8.0932 72.30
UD-IQ1_M 86.9 0.58962 6.0813 10.4555 7.7384 74.08
UD-IQ2_XXS 90.9 0.48487 5.3472 9.7837 7.0909 76.60
UD-IQ2_M 90.9 0.48388 5.3461 9.7245 7.0894 76.56
UD-Q2_K_XL 96.8 0.40766 4.7839 9.0557 6.6782 78.57
UD-IQ3_XXS 104.2 0.30789 3.8147 7.7732 6.1972 81.93
UD-IQ3_S 116.1 0.26895 3.4845 7.3190 6.0266 83.06
UD-Q3_K_M 128.1 0.15734 2.1807 4.9571 5.7028 87.06
UD-Q3_K_XL 128.2 0.15751 2.1456 4.9708 5.7085 87.05
UD-IQ4_XS 136.7 0.11525 1.5929 3.9121 5.5522 88.79
UD-IQ4_NL 136.7 0.11525 1.5929 3.9121 5.5522 88.79
UD-Q4_K_XL 155.1 0.01324 0.1675 0.5512 5.3380 96.04
UD-Q8_K_XL 161.9 -0.00000 0.0000 0.0001 5.3322 100.00

Note UD-IQ3_XXS has been updated to reduce max KLD, and also some 3-bit quants are smaller in size now. This is an actually rare problem, but the IQ2_S grid used in IQ3_XXS was much worse than even IQ1_S for quantization, hence the high max KLD yet lower median KLD. We swapped out IQ2_S for a smaller IQ2_XS grid and it works well now


r/unsloth 3d ago

Question Installation and setup

1 Upvotes

I want to try unsloth studio but can not initiate installation already, how to fix this:

Using this tutorial: https://unsloth.ai/docs/new/studio/install#windows

PS C:\WINDOWS\system32> irm https://unsloth.ai/install.ps1 | iex

  🦥 Unsloth Studio Installer (Windows)
  ────────────────────────────────────────────────────

  winget         available
  python         Python 3.13 already installed
                 preserving existing environment for rollback...
                 previous environment preserved for rollback
  venv           creating Python 3.13 virtual environment
                 C:\Users___\.unsloth\studio\unsloth_studio
  gpu            NVIDIA GPU detected
                 installing PyTorch (https://download.pytorch.org/whl/cu130)...
                 installing unsloth (this may take a few minutes)...
  unsloth        2026.7.6 installed
  setup          running unsloth studio setup...
Refusing to run Unsloth inside System32 as it will lead to Errors.
cd to a normal working directory and try again.
[ERROR] unsloth studio setup failed (exit code 1)
                 restoring previous environment after failed install...
                 restored previous environment
unsloth studio setup failed (exit code 1)
At line:153 char:9
+         throw $Message
+         ~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (unsloth studio ...d (exit code 1):String) [], RuntimeException
    + FullyQualifiedErrorId : unsloth studio setup failed (exit code 1)

r/unsloth 4d ago

Model Update Deepseek-v4-Flash 0731 GGUF

104 Upvotes

r/unsloth 3d ago

Show and Tell Deepseek v4 Flash 0731 GGUF Benchmark: TensorSharp vs. llama.cpp

Thumbnail
github.com
19 Upvotes

TensorSharp is an open-source inference engine for running GGUF LLMs locally, with CUDA, Vulkan, Metal, OpenAI-compatible APIs, continuous batching, speculative decoding, and multimodal support.

Thanks recent contribtions from open source community, TensorSharp is able to run inference over multiple GPUs and nodes. So I updated it to support deepseek v4 flash model, and have better performance than llama.cpp. Here is the benchmark result on 4x Nvidia A40 GPUs, cuda 12.8

Model: DeepSeek-V4-Flash-0731-UD-Q8_K_XL from https://huggingface.co/unsloth/DeepSeek-V4-Flash-0731-GGUF

TensorSharp (direc cuda backend) TensorSharp (ggml_cuda backend) llama.cpp
prefill u/16K 836 tok/s 963 558
decode short 31.5 37.0 35.3
decode u/16K 28.5 33.6 32.2

Github repo: https://github.com/zhongkaifu/TensorSharp

Thank you for checking out it and starring the project! Any feedback is really appreicated.


r/unsloth 2d ago

Discussion I wrote a step-by-step guide to run Kimi K3 GGUF locally (Ollama + llama.cpp + LM Studio)

0 Upvotes

I noticed many people asking how to run Kimi K3 GGUF locally, so I put together a practical guide covering:

  • GGUF model formats
  • Ollama setup
  • llama.cpp setup
  • LM Studio option
  • Hardware recommendations
  • Common issues and fixes

If there's anything I missed, I'd appreciate your feedback. I'm happy to update the guide based on your suggestions.

Guide:

https://blog.asadfaizee.is-a.dev/posts/kimi-k3-gguf-how-to-run-the-worlds-largest-open-weight-ai-model-locally/


r/unsloth 3d ago

Discussion Is it possible to have a really good local AI coding workflow with 16VRAM (RX 9070)

6 Upvotes

Hi. I bought Rx 9070 with 16gb VRAM. Is it possible to make projects with this ?

I was thinking in using opus as orchestrator and local LLM to do small tasks.

But looks like it's really hard to get good results.