mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #871] [bug]TypeError: expected string or bytes-like object, got 'NoneType' #625
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#625
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lhtpluto on GitHub (Mar 12, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/871
Checklist
Describe the bug
执行(run): python ktransformers/local_chat.py --model_path /home/ktransformers/models0/DeepSeek-R1-IQ1S-FP8 --optimize_config_path ktr ansformers/optimize/optimize_rules/DeepSeek-V3-Chat-fp8-linear-ggml-experts.yaml --cpu_infer 61
或执行(or run ):python ktransformers/local_chat.py --model_path /home/ktransformers/models0/DeepSeek-R1-IQ1S-FP8 --gguf_path /home/ktransformers/models01 --optimize_config_path ktransformers/optimize/optimize_rules/DeepSeek-V3-Chat-fp8-linear-ggml-experts.yaml --cpu_infer 61
提示错误(OSError):OSError: /home/ktransformers/models0/DeepSeek-R1-IQ1S-FP8 does not appear to have a file named config.json.
PS: /home/ktransformers/models01/DeepSeek-R1-UD-IQ1_S.gguf
如果使用(if use)https://huggingface.co/deepseek-ai/DeepSeek-R1/tree/main中的config.json和configuration_deepseek.py
报错(ValueError):
Reproduction
我按照https://github.com/kvcache-ai/ktransformers/blob/main/doc/en/fp8_kernel.md的说明,直接下载了KVCache-ai/DeepSeek-R1-GGML-FP8-混合
Environment
OS:
Ubuntu 24.04.2 LTS (GNU/Linux 6.8.0-55-generic x86_64):Linux version 6.8.0-55-generic (buildd@lcy02-amd64-095) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025
GPU: RTX4090
CPU: intel 8581C
RAM: 64GB*8
@lhtpluto commented on GitHub (Mar 12, 2025):
刚刚看到 https://github.com/kvcache-ai/ktransformers/issues/360
it worked
================
新的错误(new error):ModuleNotFoundError: No module named 'flash_attn'
@lhtpluto commented on GitHub (Mar 12, 2025):
https://kvcache-ai.github.io/ktransformers/en/install.html
"同时,您应该从https://github.com/Dao-AILab/flash-attention/releases下载并安装相应版本的flash-attention。"
pip install flash_attn-2.7.4.post1+cu12torch2.6cxx11abiTRUE-cp311-cp311-linux_x86_64.whl
报错(ImportError):
@lhtpluto commented on GitHub (Mar 12, 2025):
pip install flash-attn --no-build-isolation
python setup.py install
报错(TypeError):TypeError: expected string or bytes-like object, got 'NoneType'
@Azure-Tang commented on GitHub (Mar 12, 2025):
这个看着像torch没装好?在命令行输入python然后import troch看看?如果不行的话重装一下torch
@lhtpluto commented on GitHub (Mar 13, 2025):
感觉您分析的对,稍后我测试下
@Atream commented on GitHub (Mar 15, 2025):
flash attn如果报错,请选择正确的whl包安装,一般来说如果symbol not found则应该安装abi False版本的whl包