lime-robot / categories-prediction Goto Github PK
View Code? Open in Web Editor NEW트랜스포머 기반의 상품 카테고리 분류기
트랜스포머 기반의 상품 카테고리 분류기
ubuntu@nipa2021-35521:~/taemin/categories-prediction/code$ python train.py --fold 0
2021-11-22 11:04:25.561968: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
Device: cuda
Current cuda device: 0
Count of using GPUs: 1
{'module': 'main', 'learning_rate': 0.0003, 'batch_size': 1024, 'num_workers': 4, 'print_freq': 100, 'start_epoch': 0, 'num_train_epochs': 3, 'warmup_steps': 100, 'max_grad_norm': 10, 'weight_decay': 0.01, 'dropout': 0.2, 'hidden_size': 512, 'intermediate_size': 256, 'nlayers': 2, 'nheads': 8, 'seq_len': 64, 'n_b_cls': 58, 'n_m_cls': 553, 'n_s_cls': 3191, 'n_d_cls': 405, 'vocab_size': 32000, 'img_feat_size': 2048, 'type_vocab_size': 30, 'csv_path': '/home/ubuntu/taemin/categories-prediction/input/processed/train.csv', 'h5_path': '/home/ubuntu/taemin/categories-prediction/input/processed/train_img_feat.h5', 'dict': <attribute 'dict' of 'CFG' objects>, 'weakref': <attribute 'weakref' of 'CFG' objects>, 'doc': None, 'seed': 7}
loading ...
loading ... done
parameters: 24637551
num_train_optimization_steps 19065
use WarmupLinearSchedule ...
initial learning rate:0.0
/opt/conda/conda-bld/pytorch_1634272115665/work/aten/src/ATen/native/cuda/Loss.cu:455: nll_loss_backward_reduce_cuda_kernel_2d: block: [0,0,0], thread: [11,0,0] Assertion t >= 0 && t < n_classes
failed.
/opt/conda/conda-bld/pytorch_1634272115665/work/aten/src/ATen/native/cuda/Loss.cu:455: nll_loss_backward_reduce_cuda_kernel_2d: block: [0,0,0], thread: [15,0,0] Assertion t >= 0 && t < n_classes
failed.
Traceback (most recent call last):
File "train.py", line 514, in
main()
File "train.py", line 233, in main
train_res = train(train_loader, model, optimizer, epoch, scheduler)
File "train.py", line 316, in train
loss.backward()
File "/home/ubuntu/anaconda3/envs/transformers/lib/python3.6/site-packages/torch/_tensor.py", line 307, in backward
torch.autograd.backward(self, gradient, retain_graph, create_graph, inputs=inputs)
File "/home/ubuntu/anaconda3/envs/transformers/lib/python3.6/site-packages/torch/autograd/init.py", line 156, in backward
allow_unreachable=True, accumulate_grad=True) # allow_unreachable flag
RuntimeError: CUDA error: device-side assert triggered
github에 있는 code에서 따로 수정한 부분은 없었습니다.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.