Comments (7)
Ah, that's because you have a newer version of ghc than I used. Not to worry, I updated it to work with your version (ghc 9.0 which corresponds to base-4.15). Pull the repo and try again.
from gpt-2.
That worked perfectly, as far as I am aware, though now when I try to run it using Tensor Rematerialization it throws an error, seemingly about not being able to find it, is there a step I'm missing? I ran the command cabal v2-install --installdir=../bin
and then added --twremat
and --twremat_memlimit
, but then it says this.
bin\twremat C:\Users\natha\AppData\Local\Temp\tmpsc906qwm C:\Users\natha\AppData\Local\Temp\tmp5lue0uvk
Traceback (most recent call last):
File "train.py", line 314, in
main()
File "train.py", line 146, in main
(train_loss, opt_grads) = tfremat.tf_remat((train_loss, opt_grads), memlimit=args.twremat_memlimit)
File "D:\Hobbies\AI\gpt-2-finetuning\src\tfremat.py", line 163, in tf_remat
steps = twremat.runtwremat(node_info, memlimit, {from_op[c] for c in compute_ops})
File "D:\Hobbies\AI\gpt-2-finetuning\src\twremat.py", line 47, in runtwremat
proc = Popen([TWREMAT, fname, outname])
File "C:\Users\natha\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 800, in init
restore_signals, start_new_session)
File "C:\Users\natha\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
from gpt-2.
Hmm... That looks like some sort of difference with windows. I can only guess what because I don't do any development on windows. Maybe because it's called twremat.exe there? Try editing src/twremat.py
and overriding TWREMAT
to the full path of twremat.exe? Probably D:\Hobbies\AI\gpt-2-finetuning\bin\twremat.exe
in your case.
from gpt-2.
Verify that the file is actually there too, I guess.
from gpt-2.
How would I do that? Would I simply replace TWREMAT=os.path.join(BINDIR, 'twremat')
with TWREMAT=D:\Hobbies\AI\gpt-2-finetuning\bin\twremat.exe')
or am I thinking about this totally wrong? And sorry for all the questions I'm completely new to all of this (asides from bashing my head against it multiple times over the years and this week). Also the file is indeed there so that's good.
from gpt-2.
TWREMAT=r'D:\Hobbies\AI\gpt-2-finetuning\bin\twremat.exe'
from gpt-2.
Ah, that worked! Thank you for all the help!
from gpt-2.
Related Issues (20)
- gpt2 translation task HOT 1
- How to train in multiple gpu HOT 1
- Early Stopping
- OOM on 345M with GPU HOT 4
- "ModelNotFoundError": No model named "encoder"
- ModuleNotFoundError: No module named 'encoder' HOT 7
- Where to enter model name as parameter HOT 1
- Cannot download the models HOT 4
- File "encode.py", line 23 HOT 1
- GPT2 Fine Tuning does not support Ampere (RTX 3000s) Cards
- Dockerfile no longer accurate? HOT 2
- ModuleNotFoundError: No module named 'Sampler' HOT 3
- I can't train my dataset HOT 3
- this parameter cannot be zero when i using my file history.npz
- Encoder doesn't work HOT 1
- avg stays in 2.6-2.9 range
- how to use trained data to generate text? HOT 1
- GPT-2 doesn't have Encode.py or Train.py.
- Training on TPU HOT 1
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 gpt-2.