Open nguyenhoanganh2002 opened 2 weeks ago
I'll check this and contact you as soon as possible
I'll check this and contact you as soon as possible
It's worth noting that I encountered this problem when I changed the backbone to Llama 3 8b. The 1 and 2-shot scenarios worked well, but the 5 and 10-shot scenarios resulted in the aforementioned error at stage 3.
You may need to check if the label of each class is placed correctly. If not, the condition in:
if len(add_label) != 0:
is False. Thus, the token is not assigned, resulting in the Error.
You may need to check if the label of each class is placed correctly. If not, the condition in:
if len(add_label) != 0:
is False. Thus, the token is not assigned, resulting in the Error.
I'm sorry for asking so many questions, could you provide the mapping between label_id and label_name?
could you provide the mapping between label_id and label_name?
The label_id and label_name are the same as defined in this repo. You may have misunderstood me.
the label of each class is placed correctly.
I mean the variable add_label
may be empty because of some bugs, e.g., the exemplar is not correctly built. You may need to debug the variable in the third stage and compare them with the previous stage to see if some of the labels are missing.
could you provide the mapping between label_id and label_name?
The label_id and label_name are the same as defined in this repo. You may have misunderstood me.
the label of each class is placed correctly.
I mean the variable
add_label
may be empty because of some bugs, e.g., the exemplar is not correctly built. You may need to debug the variable in the third stage and compare them with the previous stage to see if some of the labels are missing.
I ran your code to reproduce the results from the paper, but I encountered the same error in permutations 1, 2, 3, and 4.
Traceback (most recent call last): File "/mnt/anhnh/FSED/train.py", line 470, in
train(0, args)
File "/mnt/anhnh/FSED/train.py", line 153, in train
exemplar_dataset = collect_exemplar_dataset(args.dataset, args.data_root, 'train', label2idx, stage-1, streams[stage-1])
File "/mnt/anhnh/FSED/utils/dataloader.py", line 131, in collect_exemplar_dataset
if len(token) >= max_seqlen + 2: