ArthurZ HF staff commited on
Commit
3679bc1
1 Parent(s): abf07ee

Update checkpoint for transformers>=4.29

Browse files

Following the merge of [a PR](https://github.com/huggingface/transformers/pull/24310) in `transformers` it appeared that this model was not properly converted. This PR will fix the inference and was tested using the following script:
```python
>>> from transformers import AutoTokenizer, MarianMTModel
>>> tokenizer = AutoTokenizer.from_pretrained('Helsinki-NLP/opus-mt-tc-base-uk-tr')
>>> inputs = tokenizer("Гей!Давайте вчитися разом", return_tensors="pt", padding=True)
>>> model = MarianMTModel.from_pretrained('Helsinki-NLP/opus-mt-tc-base-uk-tr')
>>> print(tokenizer.batch_decode(model.generate(**inputs)))
['<pad> Hey! Birlikte Öğrenmeye devam edelim</s>']
```

.gitattributes CHANGED
@@ -26,3 +26,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
26
  *.zstandard filter=lfs diff=lfs merge=lfs -text
27
  *tfevents* filter=lfs diff=lfs merge=lfs -text
28
  *.spm filter=lfs diff=lfs merge=lfs -text
 
 
26
  *.zstandard filter=lfs diff=lfs merge=lfs -text
27
  *tfevents* filter=lfs diff=lfs merge=lfs -text
28
  *.spm filter=lfs diff=lfs merge=lfs -text
29
+ model.safetensors filter=lfs diff=lfs merge=lfs -text
config.json CHANGED
@@ -39,7 +39,7 @@
39
  "share_encoder_decoder_embeddings": true,
40
  "static_position_embeddings": true,
41
  "torch_dtype": "float16",
42
- "transformers_version": "4.18.0.dev0",
43
  "use_cache": true,
44
  "vocab_size": 60668
45
  }
 
39
  "share_encoder_decoder_embeddings": true,
40
  "static_position_embeddings": true,
41
  "torch_dtype": "float16",
42
+ "transformers_version": "4.34.0.dev0",
43
  "use_cache": true,
44
  "vocab_size": 60668
45
  }
generation_config.json CHANGED
@@ -12,5 +12,5 @@
12
  "num_beams": 4,
13
  "pad_token_id": 60667,
14
  "renormalize_logits": true,
15
- "transformers_version": "4.32.0.dev0"
16
  }
 
12
  "num_beams": 4,
13
  "pad_token_id": 60667,
14
  "renormalize_logits": true,
15
+ "transformers_version": "4.34.0.dev0"
16
  }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37451441ae73c44a46e1df086e05113904be963e3077f12ba765faa366e476c7
3
+ size 150551176
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:81af44075b6e8509c99880525bfd0a7a5771cea4c140907f4cdfaee31a3f0bd9
3
- size 212738051
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74ee860e2e88f0948025e839c518aef9a65921aeacc31014352d36fab1d77553
3
+ size 150608837