In my code I have: output = self.decoder(output, embedded, tgt_mask=attention_mask) where decoder_layer = TransformerDecoderLayer(embedding_size, ...
In my code I have: output = self.decoder(output, embedded, tgt_mask=attention_mask) where decoder_layer = TransformerDecoderLayer(embedding_size, ...
Objective My goal is to fine-tune a pre-trained LLM on a dataset about Manchester United's (MU's) 2021/22 season (they had a poor season). I want to ...
When import pipeline from Huggingface on Kaggle notebook, it throws this error: How do I resolve this error? ...
I have issues combining a DataLoader and DataCollator. The following code with DataCollatorWithPadding results in a ValueError: Unable to create tenso ...
Can anyone tell how can i get pooled output form deberta model ? Can anyone tell how can i get pooled output form deberta model ? i would like to use ...
I would like to pass a directional attention mask to BertModel.forward, so that I can control which surrounding tokens each token can see during self- ...
I'm trying to connect to an mssql database using Kerberos authentication in Python. When my anaconda environment just has pyodbc installed, I can conn ...
I've a dataframe with 3 columns and I'm trying to perform few shot text classification using SetFit model Dataframe (df) The traditional SetFit mo ...
I am trying to save the GPT2 tokenizer as follows: I am getting the following error: TypeError: Object of type property is not JSON serializable M ...
This is the error message i got after installing a requirement.txt file from my project. I think it is related to torch but also dont know how to fi ...
To compare different paragraphs, I am trying to use a transformer model, fitting each paragraph onto the model and then in the end I intend to compare ...
I have a huggingface pipeline that classifies tokens, like this: The problem is that the supposed json resulting from this is very problematic, it ...
I have a python code that uses a Huggingface pipeline. This code works fine from a computer that has unrestricted access to the internet. During fi ...
Using TxtAI python module with sql query SELECT id, text, score, solution_id, column_name FROM txtai WHERE similar('{query}') AND score >= 0.5, I a ...
I have this file (MYFILE.txt) that is the output of a list of lists with dictionaries inside: I want to group the "literal" in order to get the tex ...
Giving the right kind of prompt to Flan T5 Language model in order to get the correct/accurate responses for a chatbot/option matching use case. I am ...
I'm trying to follow this HuggingFace tutorial https://huggingface.co/blog/fine-tune-vit Using their "beans" dataset everything works, but if I use m ...
When trying load model: from transformers import TrOCRProcessor,VisionEncoderDecoderModel model=VisionEncoderDecoderModel.from_pretrained('microsoft ...
I would like to apply VIT for image classification. But I have one problem and I don't know as resolve it. My error is this "KeyError: 'img'". The err ...
I have a folder with the ruBERT model, which was fine-tuned with the application of the Deeppavlov library. The folder contains the following model fi ...