step_into_llm
step_into_llm copied to clipboard
ChatPDF功能存在的问题使用chatglm4运行 chatpdf.py直接报错。
ChatPDF功能存在的问题使用chatglm4运行 chatpdf.py直接报错。如下所示。
(mindspore) root@autodl-container-bff2469f3e-a4796232:~/autodl-tmp/ChatPDF# python chatpdf.py
Building prefix dict from the default dictionary ...
Loading model from cache /tmp/jieba.cache
Loading model cost 0.749 seconds.
Prefix dict has been built successfully.
Namespace(sim_model_name='shibing624/text2vec-base-multilingual', gen_model_type='chatglm', gen_model_name='/root/autodl-tmp/Qwen_Fine_tuning/ZhipuAI/glm-4-9b-chat', lora_model=None, rerank_model_name='', corpus_files='sample.pdf', chunk_size=220, chunk_overlap=0, num_expand_context_chunk=1)
The following parameters in checkpoint files are not loaded:
['embeddings.position_ids']
Traceback (most recent call last):
File "/root/autodl-tmp/ChatPDF/chatpdf.py", line 518, in