RichardErkhov commited on
Commit
2643944
·
verified ·
1 Parent(s): 347e1fd

uploaded readme

Browse files
Files changed (1) hide show
  1. README.md +82 -0
README.md ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Quantization made by Richard Erkhov.
2
+
3
+ [Github](https://github.com/RichardErkhov)
4
+
5
+ [Discord](https://discord.gg/pvy7H8DZMG)
6
+
7
+ [Request more models](https://github.com/RichardErkhov/quant_request)
8
+
9
+
10
+ gpt2-small-italian-embeddings - bnb 8bits
11
+ - Model creator: https://huggingface.co/GroNLP/
12
+ - Original model: https://huggingface.co/GroNLP/gpt2-small-italian-embeddings/
13
+
14
+
15
+
16
+
17
+ Original model description:
18
+ ---
19
+ language: it
20
+ tags:
21
+ - adaption
22
+ - recycled
23
+ - gpt2-small
24
+ pipeline_tag: text-generation
25
+ ---
26
+
27
+ # GPT-2 recycled for Italian (small, adapted lexical embeddings)
28
+ [Wietse de Vries](https://www.semanticscholar.org/author/Wietse-de-Vries/144611157) •
29
+ [Malvina Nissim](https://www.semanticscholar.org/author/M.-Nissim/2742475)
30
+
31
+ ## Model description
32
+
33
+ This model is based on the small OpenAI GPT-2 ([`gpt2`](https://huggingface.co/gpt2)) model.
34
+
35
+ The Transformer layer weights in this model are identical to the original English, model but the lexical layer has been retrained for an Italian vocabulary.
36
+
37
+ For details, check out our paper on [arXiv](https://arxiv.org/abs/2012.05628) and the code on [Github](https://github.com/wietsedv/gpt2-recycle).
38
+
39
+
40
+ ## Related models
41
+
42
+ ### Dutch
43
+ - [`gpt2-small-dutch-embeddings`](https://huggingface.co/GroNLP/gpt2-small-dutch-embeddings): Small model size with only retrained lexical embeddings.
44
+ - [`gpt2-small-dutch`](https://huggingface.co/GroNLP/gpt2-small-dutch): Small model size with retrained lexical embeddings and additional fine-tuning of the full model. (**Recommended**)
45
+ - [`gpt2-medium-dutch-embeddings`](https://huggingface.co/GroNLP/gpt2-medium-dutch-embeddings): Medium model size with only retrained lexical embeddings.
46
+
47
+ ### Italian
48
+ - [`gpt2-small-italian-embeddings`](https://huggingface.co/GroNLP/gpt2-small-italian-embeddings): Small model size with only retrained lexical embeddings.
49
+ - [`gpt2-small-italian`](https://huggingface.co/GroNLP/gpt2-small-italian): Small model size with retrained lexical embeddings and additional fine-tuning of the full model. (**Recommended**)
50
+ - [`gpt2-medium-italian-embeddings`](https://huggingface.co/GroNLP/gpt2-medium-italian-embeddings): Medium model size with only retrained lexical embeddings.
51
+
52
+
53
+ ## How to use
54
+
55
+ ```python
56
+ from transformers import pipeline
57
+
58
+ pipe = pipeline("text-generation", model="GroNLP/gpt2-small-italian-embeddings")
59
+ ```
60
+
61
+ ```python
62
+ from transformers import AutoTokenizer, AutoModel, TFAutoModel
63
+
64
+ tokenizer = AutoTokenizer.from_pretrained("GroNLP/gpt2-small-italian-embeddings")
65
+ model = AutoModel.from_pretrained("GroNLP/gpt2-small-italian-embeddings") # PyTorch
66
+ model = TFAutoModel.from_pretrained("GroNLP/gpt2-small-italian-embeddings") # Tensorflow
67
+ ```
68
+
69
+ ## BibTeX entry
70
+
71
+ ```bibtex
72
+ @misc{devries2020good,
73
+ title={As good as new. How to successfully recycle English GPT-2 to make models for other languages},
74
+ author={Wietse de Vries and Malvina Nissim},
75
+ year={2020},
76
+ eprint={2012.05628},
77
+ archivePrefix={arXiv},
78
+ primaryClass={cs.CL}
79
+ }
80
+ ```
81
+
82
+