Coder Social home page Coder Social logo

aayux / fitfast Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 113 KB

Quickly fine-tune language models for your downstream NLP tasks.

License: Apache License 2.0

Python 100.00%
language-model natural-language-processing transfer-learning transformer-encoder ulmfit

fitfast's People

Contributors

aayux avatar

Watchers

 avatar  avatar

fitfast's Issues

Only half an epoch completed on cycle length 2

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]

Zero-sized dimensions while batchifying

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.