ggerganov / ggml

Tensor library for machine learning
MIT License
10.98k stars 1.01k forks source link

GGML_MAX_NAME is too small. #825

Open IntptrMax opened 4 months ago

IntptrMax commented 4 months ago

GGML_MAX_NAME is small in sometime. For example, a name in stable-diffusion safetensors is 'model.diffusion_model.input_blocks.2.1.transformer_blocks.0.attn2.to_q.weight' , and I want to load the safetensors file as ggml tensor with it's original name. But the name length is more than GGML_MAX_NAME(64). Will GGML_MAX_NAME can be updated to 128 ?

balisujohn commented 4 months ago

See this PR https://github.com/ggerganov/ggml/pull/682. TLDR you can set it with compile flags.