Comments (7)
更新代码可以了
from llama-factory.
是int8 加载的,用Ziya官网推荐的代码推理是没有问题的
from llama-factory.
请更新仓库代码后重新尝试。
from llama-factory.
刚刚更新仓库代码还是这样,
启动命令如下:
python ./src/web_demo.py --model_name_or_path ../models/Ziya-LLaMA-13B --quantization_bit 8
出错信息如下:
This share link expires in 72 hours. For free permanent hosting and GPU upgrades (NEW!), check out Spaces: https://huggingface.co/spaces
/home/hysz/anaconda3/envs/qlora/lib/python3.10/site-packages/transformers/generation/utils.py:1255: UserWarning: You have modified the pretrained model configuration to control generation. This is a deprecated strategy to control generation and will be removed soon, in a future version. Please use a generation configuration file (see https://huggingface.co/docs/transformers/main_classes/text_generation)
warnings.warn(
Traceback (most recent call last):
File "/home/hysz/anaconda3/envs/qlora/lib/python3.10/site-packages/gradio/routes.py", line 401, in run_predict
output = await app.get_blocks().process_api(
File "/home/hysz/anaconda3/envs/qlora/lib/python3.10/site-packages/gradio/blocks.py", line 1302, in process_api
result = await self.call_function(
File "/home/hysz/anaconda3/envs/qlora/lib/python3.10/site-packages/gradio/blocks.py", line 1039, in call_function
prediction = await anyio.to_thread.run_sync(
File "/home/hysz/anaconda3/envs/qlora/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/home/hysz/anaconda3/envs/qlora/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/home/hysz/anaconda3/envs/qlora/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/home/hysz/anaconda3/envs/qlora/lib/python3.10/site-packages/gradio/utils.py", line 491, in async_iteration
return next(iterator)
File "/home/hysz/AI/LLaMA-Efficient-Tuning/./src/web_demo.py", line 112, in predict
generation_output = model.generate(input_ids=input_ids, **gen_kwargs)
File "/home/hysz/anaconda3/envs/qlora/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/home/hysz/anaconda3/envs/qlora/lib/python3.10/site-packages/transformers/generation/utils.py", line 1568, in generate
return self.sample(
File "/home/hysz/anaconda3/envs/qlora/lib/python3.10/site-packages/transformers/generation/utils.py", line 2651, in sample
next_tokens = torch.multinomial(probs, num_samples=1).squeeze(1)
RuntimeError: probability tensor contains either `inf`, `nan` or element < 0
06/03/2023 21:26:59 - INFO - httpx - HTTP Request: POST http://localhost:7860/api/predict "HTTP/1.1 500 Internal Server Error"
06/03/2023 21:26:59 - INFO - httpx - HTTP Request: POST http://localhost:7860/reset "HTTP/1.1 200 OK"
06/03/2023 21:27:00 - INFO - httpx - HTTP Request: POST http://localhost:7860/api/predict "HTTP/1.1 200 OK"
06/03/2023 21:27:00 - INFO - httpx - HTTP Request: POST http://localhost:7860/reset "HTTP/1.1 200 OK"
from llama-factory.
运行 cli_demo 会出现相同问题吗?
from llama-factory.
一样的
from llama-factory.
设置参数 num_beams 为 1 试试。
from llama-factory.
Related Issues (20)
- Llama-3-70B-Instruct模型使用bf16训练报错 HOT 1
- CUDA out of memory for fsdp training HOT 1
- DPO 不支持shareGPT, 多轮需要如何改造 HOT 1
- 无法加载llama3
- fsdp+qlora mixtral 8x22B: RuntimeError: Only Tensors of floating point and complex dtype can require gradients HOT 6
- llama3-8B微调,deepspeed配置zero stage3特别慢 HOT 4
- 4XA800(80G) OOM:full sft chatglm3 6B,想问下正常吗 HOT 3
- Qwen1.5-MoE-A2.7B-Chat推理速度很慢 HOT 1
- llama-3-70B 微调 出现 <|reserved_special_token_xx|> HOT 2
- OSError: We couldn't connect to 'https://huggingface.co' to load this file, HOT 2
- full finetune问题:每次输出都会在json字段中带"human", 请问是系统提示词的原因啊嘛? HOT 2
- 训练时有没有办法让数据在前几个epoch 数据不shuffle,然后后几个epoch数据shuffle?
- 如何查看训练时合成的提示词?
- merge lora 的 checkpoint 时出现模型参数不匹配 HOT 1
- qwen14b,模型训练报错,RuntimeError: FlashAttention only supports Ampere GPUs or newer. HOT 2
- 是否可以增加DPOP对原始的DPO损失函数进行修复 HOT 1
- model.float() OOM HOT 2
- 训练yi-6B-200K报错 Assertion `srcIndex < srcSelectDimSize` failed. HOT 3
- 多卡qlora,其他显卡的显存还没满,第一张显卡就OOM了 HOT 2
- model.safetensor size changes in according to different finetuning methods HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from llama-factory.