Comments (6)
4090 graphics card with 16G graphics memory , it shows error message:
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 192.00 MiB (GPU 0; 15.99 GiB total capacity; 15.08 GiB already allocated; 0 bytes free; 15.08 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
from huatuogpt.
from huatuogpt.
你好,请问至少需要多大显存呢?
from huatuogpt.
Hi @Dgreen2017, @ihongxx
In the inference process, a model with 7B parameters typically requires approximately 28GB of graphics memory. However, when utilizing half precision, the memory requirement can be reduced to around 14GB. It's important to note that in practical scenarios, additional memory is needed to store intermediate states of the model, resulting in higher memory usage. I hope this information proves helpful to you.
Best,
Hongbo
from huatuogpt.
from huatuogpt.
from huatuogpt.
Related Issues (20)
- 求助 HOT 1
- 多轮对话evaluation HOT 1
- 加载7B模型的时候失败:ValueError: Unrecognized configuration class <class 'transformers_modules.HuatuoGPT-7B.configuration_baichuan.BaiChuanConfig'> to build an AutoTokenizer. HOT 2
- 关于基座模型的疑问 HOT 1
- 关于指令数据 HOT 1
- train error HOT 1
- 调用finetune.py发生错误 HOT 1
- How to use Reward Model? HOT 1
- 你好,请问能公开偏好数据集吗? HOT 1
- 怎么样在多GPU上运行 HOT 1
- 怎么输入换行? HOT 1
- 程序跑到 model.cuda()报错,是不是需要修改啥? HOT 1
- 请问你们数据集的训练集和测试集比例是多少? HOT 1
- 批量给模型喂数据 HOT 1
- 请问你们是怎么计算指标的? HOT 1
- 模型是怎么调出来的 HOT 1
- 请问你们在计算bleu,rouge等指标时,使用了数据集的所有数据吗,还是抽取了一定数量的样本去计算? HOT 2
- 华佗gpt
- 模型
- torch.cuda.OutOfMemoryError HOT 1
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 huatuogpt.