Skip to content

clBLAST support broken #4453

@paralin

Description

@paralin

Running commit 948ff13 the LLAMA_CLBLAST=1 support is broken.

After a Git Bisect I found that 4d98d9a is the first bad commit.

llm_load_tensors: ggml ctx size =    0.12 MiB
llm_load_tensors: using OpenCL for GPU acceleration
llm_load_tensors: mem required  =  205.19 MiB
llm_load_tensors: offloading 32 repeating layers to GPU
llm_load_tensors: offloading non-repeating layers to GPU
llm_load_tensors: offloaded 33/33 layers to GPU
llm_load_tensors: VRAM used: 5461.02 MiB
...................................................................................................
llama_new_context_with_model: n_ctx      = 512
llama_new_context_with_model: freq_base  = 10000.0
llama_new_context_with_model: freq_scale = 1
llama_new_context_with_model: KV self size  =   64.00 MiB, K (f16):   32.00 MiB, V (f16):   32.00 MiB
llama_build_graph: non-view tensors processed: 676/676
llama_new_context_with_model: compute buffer total size = 76.32 MiB
GGML_ASSERT: ggml.c:7765: ggml_are_same_shape(src0, src1)
GGML_ASSERT: ggml.c:7765: ggml_are_same_shape(src0, src1)
GGML_ASSERT: ggml.c:7765: ggml_are_same_shape(src0, src1)
GGML_ASSERT: ggml.c:7765: ggml_are_same_shape(src0, src1)
GGML_ASSERT: ggml.c:7765: ggml_are_same_shape(src0, src1)
GGML_ASSERT: ggml.c:7765: ggml_are_same_shape(src0, src1)
GGML_ASSERT: ggml.c:7765: ggml_are_same_shape(src0, src1)
GGML_ASSERT: ggml.c:7765: ggml_are_same_shape(src0, src1)
llama.sh: line 17:  1461 Aborted                 (core dumped) ./main --threads ${NUM_CPUS} --n-gpu-layers ${MODEL_GPU_LAYERS} --model ./models/${MODEL} --temp ${MODEL_TEMP} --repeat_penalty 1.1764705882352942 --n-predict -1 --top_k 42 --top_p 0 -e ${MODEL_ARGS} --prompt "${MODEL_PROMPT}"

Originally reported in #4451 - but I realized this also applies to any model when I tried testing Intel Neural 7B v3-3.

Reverting commit 4d98d9a against commit 948ff1 fixes the issue.

cc @ggerganov

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions