Comments (3)
Hi @KorneliaBastin ,
Even though it's possible to modify the PyTorch code to make it executable on CPUs (by removing the distributed training code), training BERT-like models usually is infeasible without GPUs (it will be extremely slow) so it may not really help to adapt the code to run on your mac. My suggestion would be to run the code using GPUs (like Google Colab).
Thanks,
Yu
from lotclass.
Dear @yumeng5,
I have not thought about google colab but that seems like a great alternative so thank you for the advice! Are there any changes that should be done to the code prior to that or will it be ok to run it exactly the same as per your instructions in the README file?
from lotclass.
Hi @KorneliaBastin ,
I believe you won't need to change the code (other than setting up dependencies, data directories, etc. according to Colab environments). Feel free to let me know if you encounter any issues.
Best,
Yu
from lotclass.
Related Issues (20)
- Some issues for duplicating the paper results HOT 3
- CUDA error: CUBLAS_STATUS_INTERNAL_ERROR when calling `cublasCreate(handle)` HOT 2
- [Improvement] More post-processing for the category vocabulary HOT 2
- Category Vocabulary size in paper is 50, the category vocabulary size created by the algorithm is 70 HOT 1
- In w/o self-training baseline, how are the final test predictions made if the [CLS] hasn't be trained? HOT 2
- pretrained_lm for non english data HOT 1
- Bug exists when using the original data and codes HOT 1
- Error running with test set HOT 3
- Can this method be used in the scenario of multi-label text classification? HOT 1
- Can I train on cpu and control layer freezing ? HOT 1
- AssertionError: Too few (0) documents with category indicative terms found for category 1; try to add more unlabeled documents to the training corpus (recommend) or reduce `--match_threshold` (not recommend) HOT 4
- My performance in reproducing the results of agnews using the code you provided is relatively poor
- Category Vocabulary Creation
- FileNotFoundError: [Errno 2] No such file or directory: 'datasets/agnews/label_names.txt' HOT 3
- is possible to pass muti name for one category HOT 2
- bus error when running the code HOT 3
- EnvironmentError when running code HOT 1
- RuntimeError: The task could not be sent to the workers as it is too large for `send_bytes`. HOT 3
- RuntimeError: CUDA error: all CUDA-capable devices are busy or unavailable HOT 6
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 lotclass.