GithubHelp home page GithubHelp logo

nsi319 / finetune-transformers Goto Github PK

View Code? Open in Web Editor NEW
33.0 2.0 9.0 2.6 MB

Abstractive text summarization by fine-tuning seq2seq models.

Python 99.82% Jupyter Notebook 0.18%
nlp huggingface transformers abstractive-summarization sequence-models transfer-learning pegasus t5-model bart colab

finetune-transformers's Introduction

Hi, I'm Naren!

I am a Full Stack Developer at Spider, the R&D Club of NIT Trichy. Currently working on cross-platform mobile applications in Flutter and React Native. I have also worked on several other domain projects, particularly in Natural Language Processing and Machine Learning.

Naren's github stats

Check out my repositories to see my latest work!

finetune-transformers's People

Contributors

nsi319 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

finetune-transformers's Issues

i try finetune model t5 but get the following error

All the weights of T5ForConditionalGeneration were initialized from the model checkpoint at t5-small.
If your task is similar to the task the model of the checkpoint was trained on, you can already use T5ForConditionalGeneration for predictions without further training.
1% 1/78 [00:09<11:42, 9.13s/ba]
Traceback (most recent call last):
File "/content/drive/MyDrive/Finetune/run.py", line 619, in
main()
File "/content/drive/MyDrive/Finetune/run.py", line 401, in main
load_from_cache_file=not data_args.overwrite_cache,
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py", line 2053, in map
desc=desc,
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py", line 503, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py", line 470, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py", line 406, in wrapper
out = func(self, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py", line 2408, in _map_single
offset=offset,
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py", line 2291, in apply_function_on_filtered_inputs
function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py", line 1991, in decorated
result = f(decorated_item, *args, **kwargs)
File "/content/drive/MyDrive/Finetune/run.py", line 380, in preprocess_function
labels = tokenizer(targets, max_length=max_target_length, padding=padding, truncation=True)
File "/content/drive/MyDrive/Finetune/transformers/tokenization_utils_base.py", line 2335, in call
**kwargs,
File "/content/drive/MyDrive/Finetune/transformers/tokenization_utils_base.py", line 2520, in batch_encode_plus
**kwargs,
File "/content/drive/MyDrive/Finetune/transformers/tokenization_utils_fast.py", line 378, in _batch_encode_plus
is_pretokenized=is_split_into_words,
TypeError: TextEncodeInput must be Union[TextInputSequence, Tuple[InputSequence, InputSequence]]

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.