lbourdois commited on
Commit
c72e3bc
·
verified ·
1 Parent(s): 6beb469

Update model card for Georgian

Browse files
Files changed (1) hide show
  1. README.md +79 -49
README.md CHANGED
@@ -1,49 +1,79 @@
1
- ---
2
- pipeline_tag: fill-mask
3
- language: kat
4
- tags:
5
- - trimmed
6
- library_name: transformers
7
- base_model: google/embeddinggemma-300m
8
- base_model_relation: quantized
9
- datasets:
10
- - Lumberjackk/fineweb-2-trimming
11
- ---
12
-
13
- # embeddinggemma-kat-16384
14
-
15
- This model is a 62.3% smaller version of [google/embeddinggemma-300m](https://huggingface.co/google/embeddinggemma-300m)
16
- optimized for Georgian language via vocabulary trimming mined on [Lumberjackk/fineweb-2-trimming](https://huggingface.co/datasets/Lumberjackk/fineweb-2-trimming).
17
-
18
- ## Model Statistics
19
- - **Original vocabulary size:** 262,144 tokens
20
- - **Trimmed vocabulary size:** 16,384 tokens
21
- - **Vocabulary reduction:** 93.7%
22
- - **Original model size:** 302,863,104 parameters
23
- - **Trimmed model size:** 114,119,424 parameters
24
- - **Size reduction:** 62.3%
25
-
26
-
27
- ## Usage
28
-
29
- ```python
30
- from sentence_transformers import SentenceTransformer
31
-
32
- # Download from the 🤗 Hub
33
- model = SentenceTransformer("embeddinggemma-kat-16384")
34
-
35
- # Run inference with queries and documents
36
- query = "My query"
37
- documents = [
38
- "Chunk 1",
39
- "Chunk 2",
40
- "Chunk 3",
41
- ]
42
- query_embeddings = model.encode_query(query)
43
- document_embeddings = model.encode_document(documents)
44
- print(query_embeddings.shape, document_embeddings.shape)
45
-
46
- # Compute similarities to determine a ranking
47
- similarities = model.similarity(query_embeddings, document_embeddings)
48
- print(similarities)
49
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pipeline_tag: sentence-similarity
3
+ language: kat
4
+ license: gemma
5
+ tags:
6
+ - trimmed
7
+ library_name: sentence-transformers
8
+ base_model: google/embeddinggemma-300m
9
+ base_model_relation: quantized
10
+ datasets:
11
+ - lbourdois/fineweb-2-trimming
12
+ ---
13
+
14
+ # embeddinggemma-kat-16384
15
+ This model is a **61.36% smaller** version of [google/embeddinggemma-300m](https://huggingface.co/google/embeddinggemma-300m) optimized for Georgian language via vocabulary size reduction using the [trimming](https://huggingface.co/blog/introduction-to-trimming) method.
16
+ This trimmed model should perform similarly to the original model with only 16,384 tokens and a much smaller memory footprint. However, it may not perform well for other languages as tokens not commonly used in the selected languages were removed from the vocabulary.
17
+
18
+ ## Model Statistics
19
+ | Metric | Original | Trimmed | Reduction |
20
+ |--------|----------|---------|-----------|
21
+ | **Vocabulary size** | 262,144 tokens | 16,384 tokens | **93.75%** |
22
+ | **Model size** | 307,581,696 params | 118,838,016 params | **61.36%** |
23
+
24
+ ![image](https://raw.githubusercontent.com/lbourdois/blog/refs/heads/master/assets/images/Trimming/embeddingemma-16384.png)
25
+
26
+ ## Mining Dataset Statistics
27
+ - **Number of texts used for mining**: 200,000 texts
28
+ - **Dataset**: [lbourdois/fineweb-2-trimming](https://huggingface.co/datasets/lbourdois/fineweb-2-trimming)
29
+
30
+ ## Usage
31
+
32
+ ```python
33
+ from sentence_transformers import SentenceTransformer
34
+ # Download from the 🤗 Hub
35
+ model = SentenceTransformer("alphaedge-ai/embeddinggemma-kat-16384")
36
+ # Run inference with queries and documents
37
+ query = "My query in Georgian"
38
+ documents = [
39
+ "Chunk in Georgian",
40
+ "Chunk in Georgian",
41
+ "Chunk in Georgian",
42
+ ]
43
+ query_embeddings = model.encode_query(query)
44
+ document_embeddings = model.encode_document(documents)
45
+ print(query_embeddings.shape, document_embeddings.shape)
46
+ # Compute similarities to determine a ranking
47
+ similarities = model.similarity(query_embeddings, document_embeddings)
48
+ print(similarities)
49
+ ```
50
+
51
+ ## Citations
52
+
53
+ #### EmbeddingGemma
54
+ ```
55
+ @misc{vera2025embeddinggemmapowerfullightweighttext,
56
+ title={EmbeddingGemma: Powerful and Lightweight Text Representations},
57
+ author={Henrique Schechter Vera and Sahil Dua and Biao Zhang and Daniel Salz and Ryan Mullins and Sindhu Raghuram Panyam and Sara Smoot and Iftekhar Naim and Joe Zou and Feiyang Chen and Daniel Cer and Alice Lisak and Min Choi and Lucas Gonzalez and Omar Sanseviero and Glenn Cameron and Ian Ballantyne and Kat Black and Kaifeng Chen and Weiyi Wang and Zhe Li and Gus Martins and Jinhyuk Lee and Mark Sherwood and Juyeong Ji and Renjie Wu and Jingxiao Zheng and Jyotinder Singh and Abheesht Sharma and Divyashree Sreepathihalli and Aashi Jain and Adham Elarabawy and AJ Co and Andreas Doumanoglou and Babak Samari and Ben Hora and Brian Potetz and Dahun Kim and Enrique Alfonseca and Fedor Moiseev and Feng Han and Frank Palma Gomez and Gustavo Hernández Ábrego and Hesen Zhang and Hui Hui and Jay Han and Karan Gill and Ke Chen and Koert Chen and Madhuri Shanbhogue and Michael Boratko and Paul Suganthan and Sai Meher Karthik Duddu and Sandeep Mariserla and Setareh Ariafar and Shanfeng Zhang and Shijie Zhang and Simon Baumgartner and Sonam Goenka and Steve Qiu and Tanmaya Dabral and Trevor Walker and Vikram Rao and Waleed Khawaja and Wenlei Zhou and Xiaoqi Ren and Ye Xia and Yichang Chen and Yi-Ting Chen and Zhe Dong and Zhongli Ding and Francesco Visin and Gaël Liu and Jiageng Zhang and Kathleen Kenealy and Michelle Casbon and Ravin Kumar and Thomas Mesnard and Zach Gleicher and Cormac Brick and Olivier Lacombe and Adam Roberts and Qin Yin and Yunhsuan Sung and Raphael Hoffmann and Tris Warkentin and Armand Joulin and Tom Duerig and Mojtaba Seyedhosseini},
58
+ year={2025},
59
+ eprint={2509.20354},
60
+ archivePrefix={arXiv},
61
+ primaryClass={cs.CL},
62
+ url={https://arxiv.org/abs/2509.20354},
63
+ }
64
+ ```
65
+
66
+ #### Trimming blog post
67
+ ```
68
+ @misc{hf_blogpost_trimming,
69
+ title={Introduction to Trimming},
70
+ author={Loïck BOURDOIS and Tom AARSEN and Bram VANROY and Christopher AKIKI and Woojun JUNG and Manuel ROMERO and Prithiv SAKTHI},
71
+ year={2026},
72
+ url={https://huggingface.co/blog/lbourdois/introduction-to-trimming},
73
+ }
74
+ ```
75
+
76
+ ### License
77
+ This model is derived from [google/embeddinggemma-300m](https://huggingface.co/google/embeddinggemma-300m).
78
+ Use of this model is governed by the [Gemma Terms of Use](https://ai.google.dev/gemma/terms).
79
+ By using this model, you agree to the Gemma Terms of Use. This model is not affiliated with or endorsed by Google.