aayux / fitfast Goto Github PK
View Code? Open in Web Editor NEWQuickly fine-tune language models for your downstream NLP tasks.
License: Apache License 2.0
Quickly fine-tune language models for your downstream NLP tasks.
License: Apache License 2.0
Loading data/...i/tmp/trn_ids.npy and data/.../tmp/val_ids.npy
Loading pretrained weights...
epoch: 0%| | 0/2 [00:00<?, ?it/sepoch trn_loss val_loss accuracy
0 3.473275 4.012411 0.335386
epoch: 50%|█████████████████████████████ | 1/2 [00:11<00:11, 11.80s/it]
Traceback (most recent call last):
File "finetune.py", line 69, in <module>
main()
File "finetune.py", line 21, in main
loader = ff.Loader(train, val, lang='en', bs=64, bptt=60)
File "/home/guest/user/fitfast/trainer.py", line 70, in __init__
self.val = LanguageModelIterator(val_ids, bs, bptt)
File "/home/guest/user/fitfast/text.py", line 19, in __init__
self.data = self.batchify(data)
File "/home/guest/user/fitfast/text.py", line 45, in batchify
return T(data)
File "/home/guest/user/fitfast/utils/core.py", line 28, in T
a = torch.LongTensor(a.astype(np.int64))
RuntimeError: the given numpy array has zero-sized dimensions. Zero-sized dimensions are not supported in PyTorch
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.