Questions tagged [huggingface]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
1answer
93 views

Bert for QuestionAnswering input exceeds 512

I'm training Bert on question answering (in Spanish) and i have a large context, only the context exceeds 512, the total question + context is 10k, i found that longformer is bert like for long ...
0
votes
0answers
17 views

Bert question answering start_positions is larger than end_positions [closed]

I want to fine-tune Bert on question answering for a closed domain, so I started by discovering how it works first, i executed the code bellow but the result is no write, the start position is larger ...
0
votes
0answers
23 views

PyTorch Hugging Face - Language generation with torchscript model

Have a fine-tuned a summarization model following the Hugging Face seq2seq guide (starting from sshleifer/distilbart-xsum-12-6). We are interested in using AWS elastic inference for deployment for ...
0
votes
0answers
29 views

huggingface bert - need help on working of code

Looking for some explanation of understanding of the BERT implementation by huggingface. I would explain my understanding below and then ask question: Below is code for question answering ...
0
votes
1answer
105 views

Overfitting in Huggingface's TFBertForSequenceClassification

I'm using Huggingface's TFBertForSequenceClassification for multilabel tweets classification. During training the model archives good accuracy, but the validation accuracy is poor. I've tried to solve ...
0
votes
0answers
12 views

Transformers trainer sequence classification problem

I wanted to use XLMRobertaForSequenceClassification to classify a sequence into 1 or 0. <...
0
votes
0answers
101 views

BERT Implementaion for Sequence Classification

I am trying to implement BERT using HuggingFace - transformers implementation. I am following two links: by analytics-vidhya and by HuggingFace Below is the code: ...
0
votes
0answers
52 views

HuggingFace/Transformers Implementation for Classification

I am trying to implement BERT using HuggingFace - transformers implementation. I am following two links: by analytics-vidhya and by HuggingFace If we consider inputs for both the implementations: 1) ...
0
votes
0answers
33 views

How can I make a whitespace tokenizer and use it to build a language model from scratch using transformers

I have raised a ticket in github, whose link is here Which has a problem statement as mentioned below. If you have any solution to this, do answer. I am trying to make a language model using a ...
1
vote
1answer
24 views

Should weight distribution change more when fine-tuning transformers-based classifier?

I'm using pre-trained DistilBERT model from Huggingface with custom classification head, which is almost the same as in the reference implementation: ...
0
votes
1answer
300 views

BERT - How Question answering is different than classification

Basically I am trying to understand how question answering works in case of BERT. Code for both classes QuestionAnswering and Classification is pasted below for reference. My understanding is: <...