Open xmxoxo opened 1 year ago
已修复
config = LangChainCFG()
application = LangChainApplication(config)
application.source_service.init_source_vector()
我也是
python app.py
No compiled kernel found.
Compiling kernels : /root/.cache/huggingface/modules/transformers_modules/THUDM/chatglm-6b-int4-qe/977d9df4cfae6b7a756e07698483872c5c070eee/quantization_kernels_parallel.c
Compiling gcc -O3 -fPIC -pthread -fopenmp -std=c99 /root/.cache/huggingface/modules/transformers_modules/THUDM/chatglm-6b-int4-qe/977d9df4cfae6b7a756e07698483872c5c070eee/quantization_kernels_parallel.c -shared -o /root/.cache/huggingface/modules/transformers_modules/THUDM/chatglm-6b-int4-qe/977d9df4cfae6b7a756e07698483872c5c070eee/quantization_kernels_parallel.so
Kernels compiled : /root/.cache/huggingface/modules/transformers_modules/THUDM/chatglm-6b-int4-qe/977d9df4cfae6b7a756e07698483872c5c070eee/quantization_kernels_parallel.so
Load kernel : /root/.cache/huggingface/modules/transformers_modules/THUDM/chatglm-6b-int4-qe/977d9df4cfae6b7a756e07698483872c5c070eee/quantization_kernels_parallel.so
Setting CPU quantization kernel threads to 16
Using quantization cache
Applying quantization to glm layers
No sentence-transformers model found with name /root/.cache/torch/sentence_transformers/GanymedeNil_text2vec-large-chinese. Creating a new one with MEAN pooling.
姚明.txt
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /root/Chinese-LangChain/app.py:25 in
无法使用“加载知识库”功能
启动服务后只能使用模型推理;
尝试点击:“加载知识库”,报错:”初始化知识库未成功加载“
报错代码:
查看源码,并没有发现
cache
目录;文件上传功能
左下角的“上传文件到知识库”,文件上传后会保存到
docs
目录下,但如果是中文名的文件,上传到linux上会乱码;文件上传后不知道如何使用,仍然是无法加载知识库;