Luigi commited on
Commit
9337185
·
verified ·
1 Parent(s): e1f2709

Create utils.py

Browse files
Files changed (1) hide show
  1. src/utils.py +15 -0
src/utils.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # utils.py
2
+ import opencc
3
+
4
+ model_names = [
5
+ "tiny", "tiny-ar", "tiny-zh", "tiny-ja", "tiny-ko", "tiny-uk", "tiny-vi",
6
+ "base", "base-es"
7
+ ]
8
+
9
+ available_gguf_llms = {
10
+ "Gemma-3-1B": ("bartowski/google_gemma-3-1b-it-qat-GGUF", "google_gemma-3-1b-it-qat-Q4_0.gguf"),
11
+ "Gemma-3-3N-E2B": ("unsloth/gemma-3n-E2B-it-GGUF", "gemma-3n-E2B-it-Q4_0.gguf"),
12
+ "Gemma-3-3N-E4B": ("unsloth/gemma-3n-E4B-it-GGUF", "gemma-3n-E4B-it-Q4_0.gguf"),
13
+ }
14
+
15
+ s2tw_converter = opencc.OpenCC('s2twp')