Open Khaled-Elsaka opened 11 months ago
thanks for the clarification.
When I try to fine-tune the model using the example you provided I get this error:
2023-08-27 03:24:24 | INFO | valid | epoch 001 | valid on 'valid' subset | loss -1 | num_updates 3991
Traceback (most recent call last):
File "/content/drive/.shortcut-targets-by-id/1IveGZV83gTAvsbVdV7IHmIV7DhiTjtu0/Translation Fine-Tuning/Exploring new models/unilm/deltalm/train.py", line 7, in
I am trying to use the model for inference using fairseq like: import torch from deltalm.models.deltalm import DeltaLMModel model = DeltaLMModel.from_pretrained( model_dir, checkpoint_file=model_name, bpe='sentencepiece', sentencepiece_model=spm)
and I get this error : RuntimeError: Neither args nor cfg exist in state keys = dict_keys(['weights']) the deltalm-base.pt contains only the model's weights. how can I use the model properly for inference ?