Repository navigation
Description
Environment
Where are you using Unsloth?
- Unsloth desktop application
- Unsloth web UI (
unsloth studio) - Unsloth CLI
- Python package or notebook
- Colab or Kaggle
Operating system and version: Ubuntu 24.04.4 LTS
GPU model(s) and accelerator backend: RTX 3090 24GB, Nvidia CUDA
Versions:
CUDA: 13.3,
Driver: 620.70.06,
Unsloth Version: dev
Package Version: 2026.11.7
llama.cpp Version: b12540-mix-c4017f9
Docker Image: unsloth/unsloth:latest
What happened?
When attempting to load any quant of the new Inkling-2-Mini-GGUF model, unsloth fails with the error Failed to load model: llama-server failed to start. Check that the GGUF file is valid and you have enough memory.
The "Estimated Memory Usage" Section also displays a memory footprint larger than the VRAM/System memory availability when context is set to auto. System has 40GB combined, memory usage is showing 58.72GB with f16 · 1,048,576 tokens · 4 slots KV Cache in auto mode. When manually setting context to f16 · 83,000 tokens · 4 slots, memory estimation fits in resources, but models still fail to start.
Steps to reproduce:
- Update to latest unsloth docker image and launch studio.
- Attempt to load any of the
Inkling-2-Mini-GGUFmodels. Model should fail to load.
2a. Manually set context until "Estimated Memory Usage" shows the usage to fit inside memory, then load. Model should still fail to load.
Expected behavior:
Model loads into GPU memory.
Actual behavior:
llama server fails to start with UI error Failed to load model: llama-server failed to start. Check that the GGUF file is valid and you have enough memory.
Model and operation involved:
Inkling-2-Mini-GGUF. Tested with UD-Q4_K_XL and UD-IQ4_XS
Diagnostics and logs
Desktop application
Click Copy Diagnostics on the error, startup, or update screen and paste the
result below:
0.00.070.656 I srv llama_server: initializing ...
0.00.070.669 I cmn common_param: common_params_print_info: build 12540 (b5445889d) with GNU 11.4.0 for Linux x86_64 (Compiled by the Unsloth team)
0.00.070.670 I cmn common_param: common_params_print_info: verbosity = 4 (adjust with the `-lv N` CLI arg)
0.00.070.670 I cmn common_param: device_info:
0.00.164.990 I cmn common_param: - CUDA0 : NVIDIA GeForce RTX 3090 (24122 MiB, 23857 MiB free)
0.00.164.997 I cmn common_param: - CPU : Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz (15899 MiB, 15899 MiB free)
0.00.165.053 I cmn common_param: system_info: n_threads = 6 (n_threads_batch = 6) / 6 | CUDA : ARCHS = 700,750,800,860,890,900,1000,1200 | USE_GRAPHS = 1 | FA_QUANTS = q4_0-q4_0,q8_0-q8_0,f16-f16,bf16-bf16,f8_e4m3-f8_e4m3 | CPU : SSE3 = 1 | SSSE3 = 1 | AVX = 1 | AVX2 = 1 | F16C = 1 | FMA = 1 | BMI2 = 1 | LLAMAFILE = 1 | OPENMP = 1 | REPACK = 1 |
0.00.165.104 I srv init_listene: running without SSL
0.00.165.119 I srv init_listene: api_keys: ****PWos
0.00.165.502 I srv init: using 8 threads for HTTP server
0.00.168.394 I mtmd_model_loader: model name: Inkling-2-Mini
0.00.168.399 I mtmd_model_loader: description:
0.00.168.403 I mtmd_model_loader: GGUF version: 3
0.00.168.406 I mtmd_model_loader: alignment: 32
0.00.168.406 I mtmd_model_loader: n_tensors: 422
0.00.168.409 I mtmd_model_loader: n_kv: 19
0.00.168.409 I
0.00.168.414 I mtmd_model_loader: has vision encoder
0.00.168.487 I srv load_model: loading model '/workspace/.cache/huggingface/hub/models--unsloth--Inkling-2-Mini-GGUF/snapshots/ae9327c5fbc7333116ba32eee78bb5d2bbefae4f/Inkling-2-Mini-UD-Q4_K_XL.gguf'
0.00.168.488 I srv load_model: local path '/workspace/.cache/huggingface/hub/models--unsloth--Inkling-2-Mini-GGUF/snapshots/ae9327c5fbc7333116ba32eee78bb5d2bbefae4f/Inkling-2-Mini-UD-Q4_K_XL.gguf'
0.00.204.290 I srv load_model: [mtmd] estimated worst-case memory usage of mmproj is 727.29 MiB (took 35.76 ms)
0.00.204.309 I cmn common_fit_a: fitting params to device memory ...
0.00.204.309 I cmn common_fit_a: (for bugs during this step try to reproduce them with -fit off, or provide --verbose logs if the bug only occurs with -fit on)
0.00.204.333 I common_params_fit_impl: getting device memory data for initial parameters:
0.00.560.720 E llama_model_load: error loading model: check_tensor_dims: tensor 'blk.24.attn_q.weight' not found
0.00.560.728 E llama_model_load_from_file_impl: failed to load model
0.00.560.759 E common_fit_params: encountered an error while trying to fit params to free device memory: failed to load model
0.00.560.763 I common_fit_params: fitting params to free memory took 0.36 seconds
0.00.613.841 I llama_model_loader: loaded meta data with 62 key-value pairs and 734 tensors from /workspace/.cache/huggingface/hub/models--unsloth--Inkling-2-Mini-GGUF/snapshots/ae9327c5fbc7333116ba32eee78bb5d2bbefae4f/Inkling-2-Mini-UD-Q4_K_XL.gguf (version GGUF V3 (latest))
0.00.613.861 I llama_model_loader: Dumping metadata keys/values. Note: KV overrides do not apply in this output.
0.00.613.864 I llama_model_loader: - kv 0: general.architecture str = inkling2
0.00.613.864 I llama_model_loader: - kv 1: general.type str = model
0.00.613.864 I llama_model_loader: - kv 2: general.name str = Inkling-2-Mini
0.00.613.865 I llama_model_loader: - kv 3: general.size_label str = 128x1.8B
0.00.613.866 I llama_model_loader: - kv 4: inkling2.block_count u32 = 48
0.00.613.866 I llama_model_loader: - kv 5: inkling2.context_length u32 = 1048576
0.00.613.867 I llama_model_loader: - kv 6: inkling2.embedding_length u32 = 2304
0.00.613.867 I llama_model_loader: - kv 7: inkling2.feed_forward_length u32 = 1152
0.00.613.870 I llama_model_loader: - kv 8: inkling2.attention.head_count arr[i32,48] = [24, 24, 24, 24, 24, 24, 24, 24, 24, ...
0.00.613.872 I llama_model_loader: - kv 9: inkling2.attention.head_count_kv arr[i32,48] = [8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, ...
0.00.613.875 I llama_model_loader: - kv 10: inkling2.attention.layer_norm_rms_epsilon f32 = 0.000001
0.00.613.875 I llama_model_loader: - kv 11: inkling2.expert_count u32 = 128
0.00.613.875 I llama_model_loader: - kv 12: inkling2.expert_used_count u32 = 8
0.00.613.876 I llama_model_loader: - kv 13: inkling2.attention.key_length u32 = 128
0.00.613.877 I llama_model_loader: - kv 14: inkling2.attention.value_length u32 = 128
0.00.613.877 I llama_model_loader: - kv 15: inkling2.num_loops u32 = 3
0.00.613.877 I llama_model_loader: - kv 16: inkling2.loop.core_start u32 = 6
0.00.613.878 I llama_model_loader: - kv 17: inkling2.loop.core_end u32 = 18
0.00.613.878 I llama_model_loader: - kv 18: inkling2.loop.gate_rank u32 = 64
0.00.613.878 I llama_model_loader: - kv 19: inkling2.vocab_size u32 = 201024
0.00.613.879 I llama_model_loader: - kv 20: inkling2.vocab_size_unpadded u32 = 200058
0.00.613.879 I llama_model_loader: - kv 21: inkling2.expert_feed_forward_length u32 = 1152
0.00.613.880 I llama_model_loader: - kv 22: inkling2.attention.key_length_swa u32 = 128
0.00.613.880 I llama_model_loader: - kv 23: inkling2.attention.value_length_swa u32 = 128
0.00.613.880 I llama_model_loader: - kv 24: inkling2.rope.dimension_count u32 = 0
0.00.613.880 I llama_model_loader: - kv 25: inkling2.attention.sliding_window u32 = 1024
0.00.613.882 I llama_model_loader: - kv 26: inkling2.attention.sliding_window_pattern arr[bool,48] = [true, true, true, true, true, false,...
0.00.613.882 I llama_model_loader: - kv 27: inkling2.shortconv.l_cache u32 = 4
0.00.613.883 I llama_model_loader: - kv 28: inkling2.expert_weights_scale f32 = 8.000000
0.00.613.884 I llama_model_loader: - kv 29: inkling2.activation.situ_beta f32 = 4.000000
0.00.613.885 I llama_model_loader: - kv 30: inkling2.activation.situ_linear_beta f32 = 25.000000
0.00.613.885 I llama_model_loader: - kv 31: inkling2.attn_res.block_size u32 = 6
0.00.613.886 I llama_model_loader: - kv 32: inkling2.final_logit_softcapping f32 = 30.000000
0.00.613.886 I llama_model_loader: - kv 33: inkling2.attention.relative_length u32 = 16
0.00.613.886 I llama_model_loader: - kv 34: inkling2.attention.relative_extent u32 = 1024
0.00.613.887 I llama_model_loader: - kv 35: inkling2.attention.qk_clip f32 = 22.627417
0.00.613.888 I llama_model_loader: - kv 36: inkling2.attention.relative_clip f32 = 8.000000
0.00.613.888 I llama_model_loader: - kv 37: inkling2.attention.log_scale_floor u32 = 8192
0.00.613.889 I llama_model_loader: - kv 38: inkling2.attention.log_scale_alpha f32 = 0.100000
0.00.613.889 I llama_model_loader: - kv 39: tokenizer.ggml.model str = gpt2
0.00.613.889 I llama_model_loader: - kv 40: tokenizer.ggml.pre str = inkling2
0.00.613.891 I llama_model_loader: - kv 41: tokenizer.ggml.tokens arr[str,200058] = ["!", "\"", "#", "$", "%", "&", "'", ...
0.00.613.892 I llama_model_loader: - kv 42: tokenizer.ggml.token_type arr[i32,200058] = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ...
0.00.613.893 I llama_model_loader: - kv 43: tokenizer.ggml.merges arr[str,424413] = ["i n", "e r", "t h", "a n", "o n", "...
0.00.613.894 I llama_model_loader: - kv 44: tokenizer.ggml.eos_token_id u32 = 200006
0.00.613.894 I llama_model_loader: - kv 45: tokenizer.ggml.eot_token_id u32 = 200006
0.00.613.895 I llama_model_loader: - kv 46: tokenizer.ggml.add_bos_token bool = false
0.00.613.895 I llama_model_loader: - kv 47: tokenizer.ggml.add_eos_token bool = false
0.00.613.895 I llama_model_loader: - kv 48: tokenizer.ggml.clean_spaces bool = false
0.00.613.896 I llama_model_loader: - kv 49: general.quantization_version u32 = 2
0.00.613.896 I llama_model_loader: - kv 50: general.file_type u32 = 7
0.00.613.896 I llama_model_loader: - kv 51: quantize.imatrix.file str = imatrix_unsloth.gguf
0.00.613.897 I llama_model_loader: - kv 52: quantize.imatrix.dataset str = unsloth_calibration_Inkling-2-Mini.co...
0.00.613.897 I llama_model_loader: - kv 53: quantize.imatrix.entries_count u32 = 392
0.00.613.898 I llama_model_loader: - kv 54: quantize.imatrix.chunks_count u32 = 892
0.00.613.899 I llama_model_loader: - kv 55: tokenizer.chat_template str = {%- set effort_map = {"none": 0.0, "m...
0.00.613.899 I llama_model_loader: - kv 56: general.basename str = Inkling-2-Mini
0.00.613.900 I llama_model_loader: - kv 57: tokenizer.ggml.padding_token_id u32 = 199999
0.00.613.900 I llama_model_loader: - kv 58: general.sampling.temp f32 = 1.000000
0.00.613.900 I llama_model_loader: - kv 59: general.sampling.top_k i32 = 0
0.00.613.901 I llama_model_loader: - kv 60: general.sampling.top_p f32 = 1.000000
0.00.613.901 I llama_model_loader: - kv 61: general.sampling.min_p f32 = 0.000000
0.00.613.902 I llama_model_loader: - type f32: 508 tensors
0.00.613.902 I llama_model_loader: - type q8_0: 154 tensors
0.00.613.907 I llama_model_loader: - type bf16: 32 tensors
0.00.613.908 I llama_model_loader: - type nvfp4: 40 tensors
0.00.613.909 I print_info: file format = GGUF V3 (latest)
0.00.613.909 I print_info: file type = Q8_0
0.00.613.910 I print_info: file size = 16.41 GiB (5.41 BPW)
0.00.618.421 I llama_prepare_model_devices: using device CUDA0 (NVIDIA GeForce RTX 3090) (0000:01:00.0) - 23857 MiB free
0.00.762.043 I load: 45 unused tokens
0.00.807.956 I load: printing all EOG tokens:
0.00.807.959 I load: - 199999 ('<|endoftext|>')
0.00.807.960 I load: - 200006 ('<|content_model_end_sampling|>')
0.00.808.355 I load: special tokens cache size = 60
0.00.830.712 I load: token to piece cache size = 1.2012 MB
0.00.830.722 I print_info: arch = inkling2
0.00.830.722 I print_info: vocab_only = 0
0.00.830.722 I print_info: no_alloc = 0
0.00.830.722 I print_info: n_ctx_train = 1048576
0.00.830.723 I print_info: n_embd_inp = 2304
0.00.830.723 I print_info: n_embd = 2304
0.00.830.723 I print_info: n_embd_out = 2304
0.00.830.723 I print_info: n_layer = 48
0.00.830.724 I print_info: n_layer_all = 48
0.00.830.729 I print_info: n_head = 24
0.00.830.730 I print_info: n_head_kv = 8
0.00.830.730 I print_info: n_rot = 0
0.00.830.730 I print_info: n_swa = 1024
0.00.830.731 I print_info: is_swa_any = 1
0.00.830.731 I print_info: non_causal_type = 0
0.00.830.731 I print_info: n_embd_head_k = 128
0.00.830.731 I print_info: n_embd_head_v = 128
0.00.830.732 I print_info: n_gqa = 3
0.00.830.734 I print_info: n_embd_k_gqa = 1024
0.00.830.735 I print_info: n_embd_v_gqa = 1024
0.00.830.736 I print_info: f_norm_eps = 0.0e+00
0.00.830.737 I print_info: f_norm_rms_eps = 1.0e-06
0.00.830.737 I print_info: f_clamp_kqv = 0.0e+00
0.00.830.737 I print_info: f_max_alibi_bias = 0.0e+00
0.00.830.737 I print_info: f_logit_scale = 0.0e+00
0.00.830.738 I print_info: f_attn_scale = 0.0e+00
0.00.830.738 I print_info: f_attn_value_scale = 0.0000
0.00.830.739 I print_info: n_ff = 1152
0.00.830.739 I print_info: n_expert = 128
0.00.830.739 I print_info: n_expert_used = 8
0.00.830.739 I print_info: n_expert_groups = 0
0.00.830.739 I print_info: n_group_used = 0
0.00.830.740 I print_info: causal attn = 1
0.00.830.740 I print_info: pooling type = -1
0.00.830.740 I print_info: rope type = -1
0.00.830.740 I print_info: rope scaling = linear
0.00.830.741 I print_info: freq_base_train = 10000.0
0.00.830.742 I print_info: freq_scale_train = 1
0.00.830.742 I print_info: freq_base_swa = 10000.0
0.00.830.742 I print_info: freq_scale_swa = 1
0.00.830.743 I print_info: n_embd_head_k_swa = 128
0.00.830.743 I print_info: n_embd_head_v_swa = 128
0.00.830.743 I print_info: n_rot_swa = 0
0.00.830.743 I print_info: n_ctx_orig_yarn = 1048576
0.00.830.743 I print_info: rope_yarn_log_mul = 0.0000
0.00.830.743 I print_info: rope_finetuned = unknown
0.00.830.745 I print_info: model type = ?B
0.00.830.746 I print_info: model params = 26.07 B
0.00.830.746 I print_info: general.name = Inkling-2-Mini
0.00.830.746 I print_info: vocab type = BPE
0.00.830.747 I print_info: n_vocab = 200058
0.00.830.747 I print_info: n_merges = 424413
0.00.830.747 I print_info: EOS token = 200006 '<|content_model_end_sampling|>'
0.00.830.747 I print_info: EOT token = 200006 '<|content_model_end_sampling|>'
0.00.830.748 I print_info: PAD token = 199999 '<|endoftext|>'
0.00.830.748 I print_info: LF token = 198 'Ċ'
0.00.830.748 I print_info: EOG token = 199999 '<|endoftext|>'
0.00.830.748 I print_info: EOG token = 200006 '<|content_model_end_sampling|>'
0.00.830.749 I print_info: max token length = 92
0.00.832.585 I load_tensors: loading model tensors, this can take a while... (load_mode = mmap)
0.00.895.670 E llama_model_load: error loading model: check_tensor_dims: tensor 'blk.24.attn_q.weight' not found
0.00.895.675 E llama_model_load_from_file_impl: failed to load model
0.00.895.680 E cmn common_init_: failed to load model '/workspace/.cache/huggingface/hub/models--unsloth--Inkling-2-Mini-GGUF/snapshots/ae9327c5fbc7333116ba32eee78bb5d2bbefae4f/Inkling-2-Mini-UD-Q4_K_XL.gguf'
0.00.895.684 E srv load_model: failed to load model, '/workspace/.cache/huggingface/hub/models--unsloth--Inkling-2-Mini-GGUF/snapshots/ae9327c5fbc7333116ba32eee78bb5d2bbefae4f/Inkling-2-Mini-UD-Q4_K_XL.gguf'
0.00.895.685 I srv operator(): operator(): cleaning up before exit...
0.00.896.239 E srv server_run_i: exiting due to model loading error
[studio] attempt end reason=exited exit_code=1
If Copy Diagnostics is unavailable, attach the newest relevant files from:
- Windows:
%USERPROFILE%\.unsloth\studio\ - Linux/macOS:
~/.unsloth/studio/
Useful files include:
tauri.logand, if relevant,tauri.log.1logs/install-*.log,logs/update-*.log,logs/repair-*.log, orlogs/backend-*.log- The newest
logs/server/server-*.log
Unsloth web UI
Attach the newest relevant items:
- Linux/macOS/Windows:
~/.unsloth/studio/logs/server/server-*.log
(use%USERPROFILE%\.unsloth\studio\logs\server\on Windows) - Linux/macOS shortcut launches only:
~/.local/share/unsloth/studio.log - Terminal output if Unsloth was launched from a terminal
- Browser Console errors for browser-only problems
If you configured UNSLOTH_STUDIO_HOME or STUDIO_HOME, look under
<CUSTOM_STUDIO_HOME>/logs/ instead.
Model-specific logs, if applicable
- GGUF/llama.cpp: newest
~/.unsloth/studio/logs/llama-server/*.log - Diffusion GGUF: newest
~/.unsloth/studio/logs/diffusion-server/*.log - Training resume/checkpoint bug: relevant
trainer_state.json
Python package or notebook, if applicable
Paste the complete traceback and minimal reproduction:
# Remove all tokens and private data.Also include Python, Unsloth, unsloth_zoo, PyTorch, Transformers, and TRL
versions, plus nvidia-smi output when applicable.
Activity
debojyoti-dev commentedon Nov 21, 2026
Thanks for the detailed log. I looked into this and it appears to already be in progress upstream:
check_tensor_dims: tensor 'blk.24.attn_q.weight' not foundcomes from the file using the earlier looped Inkling 2 layout (inkling2with theloop.*keys, 24 physical layers), which the llama.cpp build in your image (b12540) can't load yet. model : inkling2_loop also loads the earlier looped inkling2 layout llama.cpp#395 makes llama.cpp load that layout, and llama : looped layers, device placement by weight layers and host weight views llama.cpp#396 handles placing the looped layers across GPU and CPU.A similar report (#18690) was resolved by updating to v0.1.922-beta with llama.cpp
b12588-mix-c0c3de8or newer, so it may be worth pulling the latest Docker image and checking the llama.cpp version under Settings > Engines. Once the PRs above land and a new llama.cpp prebuild ships, both quants you tried should load.cc @danielhanchen
NWSpitfire commentedon Nov 21, 2026
That's good to know, I pulled the 'latest' tag of the image (thinking it was the latest build haha), but checking the docker hub now I see the 'v0.1.922-beta' tag is newer by about 5 hours. I will pull that down as suggested and check it has the newer llama.cpp version to test while we wait for the new PRs to merge.
Thank you
NWSpitfire commentedon Nov 21, 2026
Just pulled
v0.1.922-betatab and can confirm that the model now loads and works, albeit at ~1/3 the tokens/s compared to my usual Gemma 4 26B (51.7tok/s vs 160tok/s), with the same 169k context. Happy it now works, thanks!indrajeetapache commentedon Nov 21, 2026
@danielhanchen Validated — real load failure on older llama.cpp, but no Studio PR needed from me.
What was wrong
Log shows
check_tensor_dims: tensor 'blk.24.attn_q.weight' not foundoninkling2(looped layout) with llama.cppb12540. That binary couldn’t load the earlier looped Inkling-2 GGUF layout yet — not a bad GGUF / OOM from the UI estimate.Status
v0.1.922-betaloads and chats (newer llama.cpp). Same class of fix as [Bug] Inkling Fails to Load on my 32 GB DDR5 RAM Laptop #18690.unslothai/llama.cppConda Installation #395 / Conda xformers installation #396), not a competing Unsloth PR.Safe to close unless something still fails on
v0.1.922-beta+ after a fullunsloth studio update/ pulling that image tag (not only:latestif Hub lags).NWSpitfire commentedon Nov 21, 2026
I've been testing it and it is working well, except I have had it crash the llama server (at about 80k context) with the error "lost connection to the model server. It may have crashed". I tried retry but it then failed with "400: No model loaded".
I'll go through the logs shortly and reload the model to see if that recovers it.
This was the "UD-IQ4_XS" quant
NWSpitfire commentedon Nov 21, 2026
Interestingly, the cause of the server crash appears to be a
CUDA error: Out of memory. However, i was only at ~49.3% of context according to the unsloth UI, and the live monitor only showed 22.9GiB out of 24GiB used (if that matters?).I unloaded (the UI still showed the model as loaded), then reloaded the model again, and hit
retryin the chat error message to attempt to continue generation from where it failed and it finished successfully, so not sure why it failed first time.Partial logs from
llama-server:Studio: shrink and cap the context when respawning after a GPU OOM (u…
Studio: price Inkling 2 quantized KV by what the bundled llama.cpp ru…
stguller commentedon Nov 22, 2026
Can confirm this also reproduces on Windows 11 with upstream llama.cpp \�12600\ (win-cuda-13.5-x64) when loading \Inkling-2-Mini-UD-IQ3_XXS.gguf.
The GGUF metadata sets \inkling2.block_count = 48, but the tensor directory contains only 24 physical layers (\�lk.0\ to \�lk.23), so tensor validation fails at \�lk.24.attn_q.weight.
Tracked upstream in llama.cpp here: ggml-org/llama.cpp#32826
danielhanchen commentedon Nov 23, 2026
This should be fixed now - please update unsloth and the llama.cpp binaries! We just did an update!