Closed utterances-bot closed 3 years ago
Hello,
I have an error in this line
learn.fit_one_cycle(1, lr_max=3e-5, cbs=fit_cbs)
the error i got is :
/usr/local/lib/python3.7/dist-packages/blurr/modeling/seq2seq/core.py in after_validate(self) 138 for score_key, score in res.items(): 139 if (f'{metricname}{score_key}' not in self.custom_metric_vals): continue --> 140 self.custom_metric_vals[f'{metricname}{score_key}'] = score.mean().item() 141 elif (is_listy(return_val)):
AttributeError: 'list' object has no attribute 'mean'
Can you help me please?
This will be fixed in the next version of blurr (just waiting for fastai 2.3.1 to be made available). Stay tuned :)
Fixed. Check it out.
Hi, I kept getting this error from "learn.fit_one_cycle(1, lr_max=3e-5, cbs=fit_cbs)", can you take a look at this? Thanks! TypeError: get_hash() missing 1 required positional argument: 'use_fast_tokenizer'
The whole error message is as below: TypeError Traceback (most recent call last)
I just ran it on colab without any problems. You may want to change the pip installs to ensure you’re using the latest versions on hugging face,etc. via pip install transformers-Uqq
.
Thanks, it is helping me a lot with labeled data. But can you tell how to fine tune BART with unlabeled data?
ImportError: cannot import name 'PreCalculatedLoss' from 'blurr.utils' (conda/envs/BTSUM/lib/python3.7/site-packages/blurr/utils.py)
Can you help me on this. If i try to fix the above error through local installation of ohmeow-blurr. I m geeting an another error as
TypeError Traceback (most recent call last)
/tmp/ipykernel_35280/1278113591.py in
and when i try to reinstall -uqq with the following comment : pip install transformers-Uqq. I got the below error. ERROR: Could not find a version that satisfies the requirement transformers-Uqq (from versions: none) ERROR: No matching distribution found for transformers-Uqq
I'm not running my code on collab. I'm running it on a GPU machine.
Looks like you're using an old version of the library.
See the available loss functions here
This is Datha here .First of all I would like to thank you for the awesome library developed by you.Its really helpful & wonderful Just wanted a small help.I am trying to fine tune my model using the below code as base for my own data.But when I am trying to run with GPU(Cuda) the kernel is dying & getting restarted.Would love to know what is the solution for this.In colab the code runs faster but slow in Vertex workbench
Looks like you forgot to copy/paste your code. Please share a gist and I'll find some time to take a look to see if I notice any issues.
Error (1).docx Hi Have attached code & error in doc FYR.The code runs well in colab but giving error when I run in vertex workbench
I don't feel comfortable opening word docs from outside sources ... can you please put this into a github gist/notebook?
Thanks much - wg
On Mon, Jan 23, 2023 at 10:56 PM Datha_Kamath @.***> wrote:
Error (1).docx https://github.com/ohmeow/ohmeow_website/files/10487032/Error.1.docx Hi Have attached code & error in doc FYR.The code runs well in colab but giving error when I run in vertex workbench
— Reply to this email directly, view it on GitHub https://github.com/ohmeow/ohmeow_website/issues/18#issuecomment-1401468229, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADNMHTNEIX45UC7DPOF4DWT54IDANCNFSM4YITF7XQ . You are receiving this because you modified the open/close state.Message ID: @.***>
Hi I am facing memory error from Google Colab, Is there any work around? It's not allowing me to train the model even for 5 articles.
Hi. I am trying to summarize many sentences using blurr_summarize. But I found that this is not done with the GPU. So the time required is very long. Is there another way to shorten this time? For the record, I have set num_return_sequences to 1.
Summarization with blurr | ohmeow
blurr is a libray I started that integrates huggingface transformers with the world of fastai v2, giving fastai devs everything they need to train, evaluate, and deploy transformer specific models. In this article, I provide a simple example of how to use blurr’s new summarization capabilities to train, evaluate, and deploy a BART summarization model.
https://ohmeow.com/posts/2020/05/23/text-generation-with-blurr.html