Comments (6)
This issue arises due to a version mismatch in huggingface/transformers. The n_ctx attribute has been either removed or altered in the newer versions of transformers, which is causing errors in this repository that uses an older version.
As specified in conda_env.yml, installing transformers==4.5.1 should resolve this issue.
If that's not feasible, you might be able to solve it by manually altering n_ctx, referencing this commit:
huggingface/transformers@5b45422.
from decision-transformer.
Hello, I also met the same problem, may I ask you how to solve it?
from decision-transformer.
May I know how you solved this problem
from decision-transformer.
When I install transformers==4.5.1, another mistake happened "packaging.version.InvalidVersion: Invalid version: '0.10.1,<0.11'". And when I change transformers version to 4.4.2, the problem of "packaging.version" solved, but the ['n_ctx'] mistake is still alive.
from decision-transformer.
@feifei-feifei-hub try version transformers=4.12.5
from decision-transformer.
if you are using a higher version of Transformers, change n_ctx to n_positions can solve this problem
from decision-transformer.
Related Issues (20)
- The setting of final token
- Why the padding is different for state, action, reward?
- Global position embedding and timesteps look wrong in atari HOT 2
- Bug in state and action prediction
- [IDEA] Code for dataset generation HOT 1
- Questions about dataset preprocessing
- Gsutil Error HOT 1
- why sample from multinomial distribution during evaluation in Atari?
- torch.stack bug
- how to print accurate in this code? HOT 2
- position embeddings do not vary between various time steps HOT 1
- Image Data
- Question about the output of the decision transformer HOT 3
- What should return to go be during inferencing? HOT 2
- MultiDiscrete Action Space HOT 1
- compilation error (MuJoCo) HOT 1
- Where are the datasets? HOT 1
- Why does the training loss only consider actions and not rewards or state HOT 1
- RuntimeError: CUDA error: CUBLAS_STATUS_EXECUTION_FAILED when calling `cublasSgemm( handle, opa, opb, m, n, k, &alpha, a, lda, b, ldb, &beta, c, ldc)`
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 decision-transformer.