Comments (13)
@varadhbhatnagar You should install apex
with the recommended command in README and not by simply running pip install setup.py
. Especially if you are installing it with the CUDA capabilities.
from spanbert.
Possibly an Apex issue? Did you try the version in the README?
from spanbert.
from spanbert.
Apologies. I missed that. Not sure what's wrong then. All the related github threads seem to be coming from the Apex repo, so it does seem to be the source.
from spanbert.
Turns out that apex
wasn't installed correctly. I installed by python setup.py install
and not following the instruction on apex's README file. Thanks anyways!
from spanbert.
Turns out that
apex
wasn't installed correctly. I installed bypython setup.py install
and not following the instruction on apex's README file. Thanks anyways!
I met the same error, and I installed the apex
from the latest source, that does't work for me. Which version of apex do you use?
from spanbert.
@kaniblu Can you elaborate a bit on how you solved this issue? I am having the same problem.
from spanbert.
For those who still met the issue, this way of installation works for me: NVIDIA/apex#86 (comment)
from spanbert.
@kaniblu @vincentlux May I know the version of Pytorch, CUDA you are using?
With the recommended command in README: pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./
I am still not able to install the apex. Below is the main error:
/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1529, in _run_ninja_build
raise RuntimeError(message)
RuntimeError: Error compiling objects for extension
...
Given no hashes to check 145 links for project 'pip': discarding no candidates.
from spanbert.
@kaniblu
excuse me , could you tell me how to install apex@4a8c4ac
I just use
--!git clone https://github.com/NVIDIA/apex
--cd apex
--pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./" '
in colab and modify the 'from apex.optimizers import FusedAdam' to 'from apex.contrib.optimizers import FusedAdam'
but I get the same question with you
thanx~
from spanbert.
@tyistyler I believe you can try "git checkout 4a8c4ac" before pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./
p.s. I just installed it when I downgrade my pip to 18.0
from spanbert.
from spanbert.
@tyistyler I believe you can try "git checkout 4a8c4ac" before pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./
p.s. I just installed it when I downgrade my pip to 18.0
Thanks for sharing this, I still have some trouble installing the apex. The one thing I don't get is how to install that specific commit of apex that is mentioned in the readme. Is this git checkout 4a8c4ac
the exact command you used for that since it does not look like a valid command?
from spanbert.
Related Issues (20)
- What 's in train.txt and valid.txt these two files during preprocessing HOT 1
- Getting embeddings for spans
- How should i use train.py to load a SpanBERT model and continue pretraining it? HOT 2
- Could you provide uncased SpanBert? HOT 3
- spanBERT for Named Entity Recognition HOT 3
- About "Tokenization Step"
- About the pre-training train-test ratio
- How can i use the SpanBert to predict a span of tokens in some specific contex?
- continue pretraining HOT 1
- continue pretraining HOT 1
- TypeError: __new__() got multiple values for argument 'cls' HOT 3
- how to train spanBert NER ?
- How to continually pretrain SpanBERT starting from a model checkpoint? HOT 1
- pre-train model load failture
- Use existing pretrained model for retraining using SpanBERT
- MRQA datasets split
- Progress in Pretraining
- How to train model by changing the number of layers in the model?
- pretrained model
- Use spanbert model for Named Entity Recognition to predict on data
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 spanbert.