Mixtral-like models crash with Clblast on warming up after backend update with partial offloading.
OS: Windows 10 CPU: i5-8400 RAM: 32 GB DDR4 GPU: 3060 Ti (Dedicated Memory: 8038 MB, Shared Memory: 16350 MB)
After the backend update, models with experts started to crash with partial offloading on Clblast:
[1705256330] llm_load_print_meta: general.name = sao10k_sensualize-mixtral-bf16
[1705256330] llm_load_print_meta: BOS token = 1 '<s>'
[1705256330] llm_load_print_meta: EOS token = 2 '</s>'
[1705256330] llm_load_print_meta: UNK token = 0 '<unk>'
[1705256330] llm_load_print_meta: PAD token = 2 '</s>'
[1705256330] llm_load_print_meta: LF token = 13 '<0x0A>'
[1705256330] llm_load_tensors: ggml ctx size = 0.76 MiB
[1705256330] llm_load_tensors: offloading 5 repeating layers to GPU
[1705256330] llm_load_tensors: offloaded 5/33 layers to GPU
[1705256330] llm_load_tensors: CPU buffer size = 25215.87 MiB
[1705256330] llm_load_tensors: OpenCL buffer size = 3912.97 MiB
[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256330] .[1705256331] .[1705256331] .[1705256331] .[1705256331] .[1705256331] .[1705256331] .[1705256331] .[1705256332] .[1705256332] .[1705256332] .[1705256332] .[1705256332] .[1705256332]
[1705256332] llama_new_context_with_model: n_ctx = 4096
[1705256332] llama_new_context_with_model: freq_base = 1000000.0
[1705256332] llama_new_context_with_model: freq_scale = 1
[1705256332] llama_kv_cache_init: CPU KV buffer size = 512.00 MiB
[1705256332] llama_new_context_with_model: KV self size = 512.00 MiB, K (f16): 256.00 MiB, V (f16): 256.00 MiB
[1705256332] llama_new_context_with_model: graph splits (measure): 1
[1705256332] llama_new_context_with_model: CPU compute buffer size = 316.04 MiB
[1705256332] warming up the model with an empty run
This doesn't happen with 0 layers offloaded:
[1705256871] llm_load_print_meta: general.name = sao10k_sensualize-mixtral-bf16
[1705256871] llm_load_print_meta: BOS token = 1 '<s>'
[1705256871] llm_load_print_meta: EOS token = 2 '</s>'
[1705256871] llm_load_print_meta: UNK token = 0 '<unk>'
[1705256871] llm_load_print_meta: PAD token = 2 '</s>'
[1705256871] llm_load_print_meta: LF token = 13 '<0x0A>'
[1705256871] llm_load_tensors: ggml ctx size = 0.38 MiB
[1705256871] llm_load_tensors: offloading 0 repeating layers to GPU
[1705256871] llm_load_tensors: offloaded 0/33 layers to GPU
[1705256871] llm_load_tensors: CPU buffer size = 25215.87 MiB
[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871] .[1705256871]
[1705256871] llama_new_context_with_model: n_ctx = 4096
[1705256871] llama_new_context_with_model: freq_base = 1000000.0
[1705256871] llama_new_context_with_model: freq_scale = 1
[1705256871] llama_kv_cache_init: CPU KV buffer size = 512.00 MiB
[1705256871] llama_new_context_with_model: KV self size = 512.00 MiB, K (f16): 256.00 MiB, V (f16): 256.00 MiB
[1705256871] llama_new_context_with_model: graph splits (measure): 1
[1705256871] llama_new_context_with_model: CPU compute buffer size = 316.04 MiB
[1705256871] warming up the model with an empty run
[1705256874] n_ctx: 4096
[1705256874]
[1705256874] system_info: n_threads = 3 / 6 | AVX = 1 | AVX_VNNI = 0 | AVX2 = 1 | AVX512 = 0 | AVX512_VBMI = 0 | AVX512_VNNI = 0 | FMA = 1 | NEON = 0 | ARM_FMA = 0 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 1 | SSE3 = 1 | SSSE3 = 0 | VSX = 0 |
[1705256874] add_bos: 1
[1705256874] tokenize the prompt
[1705256874] prompt: "### System:
Below is an instruction that describes a task. Never summarize your thoughts. Write a straightforward and detailed response that appropriately completes the request.
### Instruction:
"
It worked correctly before backend integration.
Can confirm, this started hapenning to me too (RX 5700XT). It crashes with code -1073741819. Non-MoE models still work, and it doesn't crash with -ngl 0.
mixtral clblast sadly never worked crashed or behaved like mistral after a severe stroke
Can also confirm. Both HIPBLAS and CLBLAST segfault at model warmup when any number of layers is offloaded with -ngl x with x > 0. Mixtral without offloading works fine, other models also work fine, even with offloading.
6700XT on Ubuntu 22.04.
Sample output of a run, compiled with CLBLAST, release 1892:
bla@example:~$ HSA_OVERRIDE_GFX_VERSION=10.3.0 ~/AI/LLMS/Apps/llama.cpp/server --model ~/AI/LLMS/models/dolphin-2.6-mixtral-8x7b.Q4_0.gguf --threads 5 --ctx-size 4096 --no-mmap --mlock --numa --log-disable -ngl 10
{"timestamp":1705602554,"level":"INFO","function":"server_params_parse","line":2473,"message":"logging to file is disabled."}
ggml_opencl: selecting platform: 'AMD Accelerated Parallel Processing'
ggml_opencl: selecting device: 'gfx1030'
ggml_opencl: device FP16 support: true
{"timestamp":1705602555,"level":"INFO","function":"main","line":2864,"message":"build info","build":1910,"commit":"b4675773"}
{"timestamp":1705602555,"level":"INFO","function":"main","line":2867,"message":"system info","n_threads":5,"n_threads_batch":-1,"total_threads":12,"system_info":"AVX = 1 | AVX_VNNI = 0 | AVX2 = 1 | AVX512 = 0 | AVX512_VBMI = 0 | AVX512_VNNI = 0 | FMA = 1 | NEON = 0 | ARM_FMA = 0 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 1 | SSE3 = 1 | SSSE3 = 1 | VSX = 0 | "}
[1705602555]
llama server listening at http://127.0.0.1:8080
{"timestamp":1705602555,"level":"INFO","function":"main","line":2971,"message":"HTTP server listening","port":"8080","hostname":"127.0.0.1"}
llama_model_loader: loaded meta data with 25 key-value pairs and 995 tensors from /home/arnold/AI/LLMS/models/dolphin-2.6-mixtral-8x7b.Q4_0.gguf (version GGUF V3 (latest))
llama_model_loader: Dumping metadata keys/values. Note: KV overrides do not apply in this output.
llama_model_loader: - kv 0: general.architecture str = llama
llama_model_loader: - kv 1: general.name str = cognitivecomputations_dolphin-2.6-mix...
llama_model_loader: - kv 2: llama.context_length u32 = 32768
llama_model_loader: - kv 3: llama.embedding_length u32 = 4096
llama_model_loader: - kv 4: llama.block_count u32 = 32
llama_model_loader: - kv 5: llama.feed_forward_length u32 = 14336
llama_model_loader: - kv 6: llama.rope.dimension_count u32 = 128
llama_model_loader: - kv 7: llama.attention.head_count u32 = 32
llama_model_loader: - kv 8: llama.attention.head_count_kv u32 = 8
llama_model_loader: - kv 9: llama.expert_count u32 = 8
llama_model_loader: - kv 10: llama.expert_used_count u32 = 2
llama_model_loader: - kv 11: llama.attention.layer_norm_rms_epsilon f32 = 0.000010
llama_model_loader: - kv 12: llama.rope.freq_base f32 = 1000000.000000
llama_model_loader: - kv 13: general.file_type u32 = 2
llama_model_loader: - kv 14: tokenizer.ggml.model str = llama
llama_model_loader: - kv 15: tokenizer.ggml.tokens arr[str,32002] = ["<unk>", "<s>", "</s>", "<0x00>", "<...
llama_model_loader: - kv 16: tokenizer.ggml.scores arr[f32,32002] = [0.000000, 0.000000, 0.000000, 0.0000...
llama_model_loader: - kv 17: tokenizer.ggml.token_type arr[i32,32002] = [2, 3, 3, 6, 6, 6, 6, 6, 6, 6, 6, 6, ...
llama_model_loader: - kv 18: tokenizer.ggml.bos_token_id u32 = 1
llama_model_loader: - kv 19: tokenizer.ggml.eos_token_id u32 = 32000
llama_model_loader: - kv 20: tokenizer.ggml.padding_token_id u32 = 0
llama_model_loader: - kv 21: tokenizer.ggml.add_bos_token bool = true
llama_model_loader: - kv 22: tokenizer.ggml.add_eos_token bool = false
llama_model_loader: - kv 23: tokenizer.chat_template str = {{ bos_token }}{%- set ns = namespace...
llama_model_loader: - kv 24: general.quantization_version u32 = 2
llama_model_loader: - type f32: 65 tensors
llama_model_loader: - type f16: 32 tensors
llama_model_loader: - type q4_0: 833 tensors
llama_model_loader: - type q8_0: 64 tensors
llama_model_loader: - type q6_K: 1 tensors
llm_load_vocab: special tokens definition check successful ( 261/32002 ).
llm_load_print_meta: format = GGUF V3 (latest)
llm_load_print_meta: arch = llama
llm_load_print_meta: vocab type = SPM
llm_load_print_meta: n_vocab = 32002
llm_load_print_meta: n_merges = 0
llm_load_print_meta: n_ctx_train = 32768
llm_load_print_meta: n_embd = 4096
llm_load_print_meta: n_head = 32
llm_load_print_meta: n_head_kv = 8
llm_load_print_meta: n_layer = 32
llm_load_print_meta: n_rot = 128
llm_load_print_meta: n_embd_head_k = 128
llm_load_print_meta: n_embd_head_v = 128
llm_load_print_meta: n_gqa = 4
llm_load_print_meta: n_embd_k_gqa = 1024
llm_load_print_meta: n_embd_v_gqa = 1024
llm_load_print_meta: f_norm_eps = 0.0e+00
llm_load_print_meta: f_norm_rms_eps = 1.0e-05
llm_load_print_meta: f_clamp_kqv = 0.0e+00
llm_load_print_meta: f_max_alibi_bias = 0.0e+00
llm_load_print_meta: n_ff = 14336
llm_load_print_meta: n_expert = 8
llm_load_print_meta: n_expert_used = 2
llm_load_print_meta: rope scaling = linear
llm_load_print_meta: freq_base_train = 1000000.0
llm_load_print_meta: freq_scale_train = 1
llm_load_print_meta: n_yarn_orig_ctx = 32768
llm_load_print_meta: rope_finetuned = unknown
llm_load_print_meta: model type = 7B
llm_load_print_meta: model ftype = Q4_0
llm_load_print_meta: model params = 46.70 B
llm_load_print_meta: model size = 24.62 GiB (4.53 BPW)
llm_load_print_meta: general.name = cognitivecomputations_dolphin-2.6-mixtral-8x7b
llm_load_print_meta: BOS token = 1 '<s>'
llm_load_print_meta: EOS token = 32000 '<|im_end|>'
llm_load_print_meta: UNK token = 0 '<unk>'
llm_load_print_meta: PAD token = 0 '<unk>'
llm_load_print_meta: LF token = 13 '<0x0A>'
llm_load_tensors: ggml ctx size = 0.76 MiB
llm_load_tensors: offloading 10 repeating layers to GPU
llm_load_tensors: offloaded 10/33 layers to GPU
llm_load_tensors: CPU buffer size = 17389.94 MiB
llm_load_tensors: OpenCL buffer size = 7825.94 MiB
....................................................................................................
llama_new_context_with_model: n_ctx = 4096
llama_new_context_with_model: freq_base = 1000000.0
llama_new_context_with_model: freq_scale = 1
llama_kv_cache_init: CPU KV buffer size = 512.00 MiB
llama_new_context_with_model: KV self size = 512.00 MiB, K (f16): 256.00 MiB, V (f16): 256.00 MiB
llama_new_context_with_model: graph splits (measure): 1
llama_new_context_with_model: CPU compute buffer size = 316.04 MiB
[1705602563] warming up the model with an empty run
Segmentation fault
For me it doesn't crash But continues to be extremely inconsistent between each run
And struggles to understand the bob script And is worse than Mistral Meanwhile the same stuff run on NGL 0 is better than Mistral
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.