@@ -43,16 +43,29 @@ public enum HuggingFaceModel {
43
43
WIZARD_CODER_PYTHON_13B_Q5 (13 , 5 , "WizardCoder-Python-13B-V1.0-GGUF" ),
44
44
WIZARD_CODER_PYTHON_34B_Q3 (34 , 3 , "WizardCoder-Python-34B-V1.0-GGUF" ),
45
45
WIZARD_CODER_PYTHON_34B_Q4 (34 , 4 , "WizardCoder-Python-34B-V1.0-GGUF" ),
46
- WIZARD_CODER_PYTHON_34B_Q5 (34 , 5 , "WizardCoder-Python-34B-V1.0-GGUF" );
46
+ WIZARD_CODER_PYTHON_34B_Q5 (34 , 5 , "WizardCoder-Python-34B-V1.0-GGUF" ),
47
+
48
+ DBRX_12B_Q3_K_M (12 , 3 , "dbrx-16x12b-instruct-q3_k_m-gguf" , "phymbert" ),
49
+ DBRX_12B_Q4_0 (12 , 4 , "dbrx-16x12b-instruct-q4_0-gguf" , "phymbert" ),
50
+ DBRX_12B_Q6_K (12 , 6 , "dbrx-16x12b-instruct-q6_k-gguf" , "phymbert" ),
51
+ DBRX_12B_Q8_0 (12 , 8 , "dbrx-16x12b-instruct-q8_0-gguf" , "phymbert" ),
52
+ DBRX_12B_Q3_S (12 , 3 , "dbrx-16x12b-instruct-iq3_s-gguf" , "phymbert" ),
53
+ DBRX_12B_Q3_XXS (12 , 3 , "dbrx-16x12b-instruct-iq3_xxs-gguf" , "phymbert" );
47
54
48
55
private final int parameterSize ;
49
56
private final int quantization ;
50
57
private final String modelName ;
58
+ private final String user ;
51
59
52
60
HuggingFaceModel (int parameterSize , int quantization , String modelName ) {
61
+ this (parameterSize , quantization , modelName , "TheBloke" );
62
+ }
63
+
64
+ HuggingFaceModel (int parameterSize , int quantization , String modelName , String user ) {
53
65
this .parameterSize = parameterSize ;
54
66
this .quantization = quantization ;
55
67
this .modelName = modelName ;
68
+ this .user = user ;
56
69
}
57
70
58
71
public int getParameterSize () {
@@ -74,15 +87,15 @@ public String getFileName() {
74
87
public URL getFileURL () {
75
88
try {
76
89
return new URL (
77
- format ( "https://huggingface.co/TheBloke /%s/resolve/main/%s" , modelName , getFileName ()));
90
+ "https://huggingface.co/%s /%s/resolve/main/%s" . formatted ( user , modelName , getFileName ()));
78
91
} catch (MalformedURLException ex ) {
79
92
throw new RuntimeException (ex );
80
93
}
81
94
}
82
95
83
96
public URL getHuggingFaceURL () {
84
97
try {
85
- return new URL ("https://huggingface.co/TheBloke/" + modelName );
98
+ return new URL ("https://huggingface.co/%s/%s" . formatted ( user , modelName ) );
86
99
} catch (MalformedURLException ex ) {
87
100
throw new RuntimeException (ex );
88
101
}
0 commit comments