Initial commit
Browse files
README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Converted for Tensorflow
|
| 2 |
+
```
|
| 3 |
+
name = "xlm-roberta-large"
|
| 4 |
+
!rm -rf local
|
| 5 |
+
!git clone https://huggingface.co/kornesh/"$name" local
|
| 6 |
+
model = TFAutoModel.from_pretrained(name, from_pt=True)
|
| 7 |
+
tokenizer = AutoTokenizer.from_pretrained(name)
|
| 8 |
+
model.save_pretrained("local")
|
| 9 |
+
tokenizer.save_pretrained("local")
|
| 10 |
+
!cd local/ && git lfs install && git add . && git commit -m "Initial commit" && git push
|
| 11 |
+
```
|