Run this model with HF Jobs

Run unsloth/DeepSeek-R1-0528-Qwen3-8B-GGUF on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/unsloth/DeepSeek-R1-0528-Qwen3-8B-GGUF. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/unsloth/DeepSeek-R1-0528-Qwen3-8B-GGUF on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/unsloth/DeepSeek-R1-0528-Qwen3-8B-GGUF. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Update - Tool Calling + Chat Template bug fixes

#7
by danielhanchen - opened

Just updated DeepSeek-R1-0528-Qwen3-8B GGUFs and BnB, unsloth-BnB quants and all BF16 safetensors.

  1. Native tool calling is now supported. Uses https://github.com/sgl-project/sglang/pull/6765 and https://github.com/vllm-project/vllm/pull/18874 which shows DeepSeek-R1 (not Qwen) getting 93.25% on the BFCL Berkeley Function-Calling Leaderboard https://gorilla.cs.berkeley.edu/leaderboard.html.
    Use it via --jinja in llama.cpp. Native transformers and vLLM should work as well.
    Had to fix multiple issues in SGLang and vLLM's PRs (dangling newlines etc)
  2. Chat template bug fixes add_generation_prompt now works - previously <|Assistant|> was auto appended - now it's toggle-able. Fixes many issues, and should streamline chat sessions.
  3. UTF-8 encoding of tokenizer_config.json is now fixed - now works in Windows.
  4. Ollama is now fixed on using more memory - I removed num_ctx and num_predict -> it'll now default to Ollama's defaults. This allocated more KV cache VRAM, thus spiking VRAM usage. Please update your context length manually.
  5. [10th June 2025] Update - LM Studio now also works

Please re-download all weights to get the latest updates!

danielhanchen pinned discussion
danielhanchen changed discussion title from June 8th 2025 Update - Tool Calling + Chat Template fixes to June 8th Update - Tool Calling + Chat Template fixes
danielhanchen changed discussion title from June 8th Update - Tool Calling + Chat Template fixes to Update - Tool Calling + Chat Template bug fixes

It is updated again 2 hours ago can you what has changed?

It is updated again 2 hours ago can you what has changed?

Fixed specifically so it has combability for LM Studio because previously it worked in Ollama, llama.cpp etc but not LM Studio

@engrtipusultan Apologies - no need to re-download if NOT using lm studio - ie llama.cpp, transformers etc are fine.

LM Studio users said our new chat template update didnt work, so I had to redo them.

If you want to be super sure, then you're more than happy to redownload them, but it's not necessary

Just updated DeepSeek-R1-0528-Qwen3-8B GGUFs and BnB, unsloth-BnB quants and all BF16 safetensors.
...
Please re-download all weights to get the latest updates!

Thanks for the quants & fixes!

BTW I wonder if it'd make sense (in general) to use the '--no-tensor-first-split' option and always make such split GGUFs
so when one changes only the metadata and not the model tensors / weights it's just going to effect a 16kByte first-part file as opposed to a NN GByte first-part file which would have to be re-downloaded in its entirety as you said.

https://github.com/search?q=repo%3Aggml-org%2Fllama.cpp%20--no-tensor-first-split&type=code

"--no-tensor-first-split do not add tensors to the first split (disabled by default)"

@ideosphere Oh wait someone did mention it to me, (wait found it https://huggingface.co/unsloth/Qwen3-235B-A22B-GGUF/discussions/20) - I accidentally forgot to reply sorry!!!

Yes I like your idea - I'll do it for the larger ones. The small ones like Qwen probs not, since Ollama doesn't like multiple split files

@danielhanchen is there extra configuration needed in ollama to enable tool calling? pretty consistently getting {"error":"hf.co/unsloth/DeepSeek-R1-0528-Qwen3-8B-GGUF:Q4_K_XL does not support tools"}

( works fine in up to date llama.cpp with jinja, as expected )

edit: hmm, sometimes it crashes llama.cpp with libc++abi: terminating due to uncaught exception of type std::runtime_error: Unexpected empty grammar stack after accepting piece: <|tool▁calls▁begin|> ( multiple llama.cpp versions; on a 128gb m4 macbook pro )

@danielhanchen is there extra configuration needed in ollama to enable tool calling? pretty consistently getting {"error":"hf.co/unsloth/DeepSeek-R1-0528-Qwen3-8B-GGUF:Q4_K_XL does not support tools"}

Same for me. Just redownloaded Q4_k_XL and ollama still complaining that this model does not support tools.

@fire For Ollama?
@mlaihk ok that is a weird message for llama.cpp - is this related https://github.com/ggml-org/llama.cpp/issues/13690 ?

@danielhanchen yes prior to the edit is ollama as noted. after the edit is llama.cpp as noted ( i figured if ollama's template is wrong i would try the other method, but alas )

What's the fix? I'm running into this currently.

Also seeing the error "hf.co/unsloth/DeepSeek-R1-0528-Qwen3-8B-GGUF:Q4_K_XL does not support tools" when using ollama on osx. Is it wrong for me to assume I could use this model locally without any fancy hardware ( a Mac M1 Pro with built in GPU.. )

I still have an issue with this model, in particular in Continue via Ollama, I got an error that this model does not support tools.

Sign up or log in to comment