Comments (1)
Excuse me, when I run the first-stage instruction tuning on my machine with two A40 GPUs, the following error occurs:
Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed. ***************************************** Traceback (most recent call last): File "train_mem.py", line 13, in <module> train() File "/home/qinghua_mao/work/GraphGPT/graphgpt/train/train_graph.py", line 763, in train model_args, data_args, training_args = parser.parse_args_into_dataclasses() File "/home/qinghua_mao/lib/anaconda3/envs/graphgpt/lib/python3.8/site-packages/transformers/hf_argparser.py", line 338, in parse_args_into_dataclasses obj = dtype(**inputs) File "<string>", line 137, in __init__ File "/home/qinghua_mao/lib/anaconda3/envs/graphgpt/lib/python3.8/site-packages/transformers/training_args.py", line 1551, in __post_init__ and (self.device.type != "cuda") File "/home/qinghua_mao/lib/anaconda3/envs/graphgpt/lib/python3.8/site-packages/transformers/training_args.py", line 2027, in device return self._setup_devices File "/home/qinghua_mao/lib/anaconda3/envs/graphgpt/lib/python3.8/site-packages/transformers/utils/generic.py", line 63, in __get__ cached = self.fget(obj) File "/home/qinghua_mao/lib/anaconda3/envs/graphgpt/lib/python3.8/site-packages/transformers/training_args.py", line 1963, in _setup_devices self.distributed_state = PartialState( File "/home/qinghua_mao/lib/anaconda3/envs/graphgpt/lib/python3.8/site-packages/accelerate/state.py", line 240, in __init__ torch.cuda.set_device(self.device) File "/home/qinghua_mao/lib/anaconda3/envs/graphgpt/lib/python3.8/site-packages/torch/cuda/__init__.py", line 404, in set_device torch._C._cuda_setDevice(device) RuntimeError: CUDA error: invalid device ordinal Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions. You are using a model of type llama to instantiate a model of type GraphLlama. This is not supported for all configurations of models and can yield errors. Traceback (most recent call last): File "train_mem.py", line 13, in <module> train() File "/home/qinghua_mao/work/GraphGPT/graphgpt/train/train_graph.py", line 763, in train model_args, data_args, training_args = parser.parse_args_into_dataclasses() File "/home/qinghua_mao/lib/anaconda3/envs/graphgpt/lib/python3.8/site-packages/transformers/hf_argparser.py", line 338, in parse_args_into_dataclasses obj = dtype(**inputs) File "<string>", line 137, in __init__ File "/home/qinghua_mao/lib/anaconda3/envs/graphgpt/lib/python3.8/site-packages/transformers/training_args.py", line 1551, in __post_init__ and (self.device.type != "cuda") File "/home/qinghua_mao/lib/anaconda3/envs/graphgpt/lib/python3.8/site-packages/transformers/training_args.py", line 2027, in device return self._setup_devices File "/home/qinghua_mao/lib/anaconda3/envs/graphgpt/lib/python3.8/site-packages/transformers/utils/generic.py", line 63, in __get__ cached = self.fget(obj) File "/home/qinghua_mao/lib/anaconda3/envs/graphgpt/lib/python3.8/site-packages/transformers/training_args.py", line 1963, in _setup_devices self.distributed_state = PartialState( File "/home/qinghua_mao/lib/anaconda3/envs/graphgpt/lib/python3.8/site-packages/accelerate/state.py", line 240, in __init__ torch.cuda.set_device(self.device) File "/home/qinghua_mao/lib/anaconda3/envs/graphgpt/lib/python3.8/site-packages/torch/cuda/__init__.py", line 404, in set_device torch._C._cuda_setDevice(device) RuntimeError: CUDA error: invalid device ordinal Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions. Traceback (most recent call last): File "train_mem.py", line 13, in <module> train() File "/home/qinghua_mao/work/GraphGPT/graphgpt/train/train_graph.py", line 763, in train model_args, data_args, training_args = parser.parse_args_into_dataclasses() File "/home/qinghua_mao/lib/anaconda3/envs/graphgpt/lib/python3.8/site-packages/transformers/hf_argparser.py", line 338, in parse_args_into_dataclasses obj = dtype(**inputs) File "<string>", line 137, in __init__ File "/home/qinghua_mao/lib/anaconda3/envs/graphgpt/lib/python3.8/site-packages/transformers/training_args.py", line 1551, in __post_init__ and (self.device.type != "cuda") File "/home/qinghua_mao/lib/anaconda3/envs/graphgpt/lib/python3.8/site-packages/transformers/training_args.py", line 2027, in device return self._setup_devices File "/home/qinghua_mao/lib/anaconda3/envs/graphgpt/lib/python3.8/site-packages/transformers/utils/generic.py", line 63, in __get__ cached = self.fget(obj) File "/home/qinghua_mao/lib/anaconda3/envs/graphgpt/lib/python3.8/site-packages/transformers/training_args.py", line 1963, in _setup_devices self.distributed_state = PartialState( File "/home/qinghua_mao/lib/anaconda3/envs/graphgpt/lib/python3.8/site-packages/accelerate/state.py", line 240, in __init__ torch.cuda.set_device(self.device) File "/home/qinghua_mao/lib/anaconda3/envs/graphgpt/lib/python3.8/site-packages/torch/cuda/__init__.py", line 404, in set_device torch._C._cuda_setDevice(device) RuntimeError: CUDA error: invalid device ordinal Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
You could refer to this issue to deal with it: lm-sys/FastChat#550.
from graphgpt.
Related Issues (20)
- 关于图编码器的问题 HOT 1
- ModuleNotFoundError: No module named 'graphgpt' HOT 2
- 这个预训练模型可以用来做图结构的下游预测任务么?有相关示例么? HOT 1
- CUDA out of memory.
- A problem occurred when I tried to run stage1.sh HOT 4
- I can not find this file: ./arxiv_ti_ab.json HOT 1
- The results of baselines are not reasonable and not correct (Clarified by author) HOT 13
- Some questions about input embedding of graph tokens HOT 3
- CUDA error: invalid device ordinal HOT 4
- No module named 'graphgpt' HOT 21
- AssertionError: config.json missing HOT 1
- out of memory HOT 2
- ERROR: Could not build wheels for mpi4py, Pillow, which is required to install pyproject.toml-based projects HOT 1
- 关于graph matching
- AttributeError: 'str' object has no attribute 'requires_grad_'和config.json missing报错 HOT 4
- graphgpt/train文件夹下不同的train_[*].py文件的作用? HOT 1
- AttributeError: 'GraphLlamaConfig' object has no attribute 'pretrain_graph_model_path' HOT 2
- Issue in train_graph.py fail to load the model HOT 2
- GNN Baseline Too Low HOT 3
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 graphgpt.