@huggingface/tasks 0.19.3 → 0.19.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/gguf.d.ts +54 -4
- package/dist/commonjs/gguf.d.ts.map +1 -1
- package/dist/commonjs/gguf.js +152 -8
- package/dist/commonjs/local-apps.d.ts +7 -0
- package/dist/commonjs/local-apps.d.ts.map +1 -1
- package/dist/commonjs/local-apps.js +40 -0
- package/dist/commonjs/model-libraries-snippets.d.ts +3 -0
- package/dist/commonjs/model-libraries-snippets.d.ts.map +1 -1
- package/dist/commonjs/model-libraries-snippets.js +116 -20
- package/dist/commonjs/model-libraries.d.ts +24 -1
- package/dist/commonjs/model-libraries.d.ts.map +1 -1
- package/dist/commonjs/model-libraries.js +23 -0
- package/dist/commonjs/tasks/index.js +1 -1
- package/dist/esm/gguf.d.ts +54 -4
- package/dist/esm/gguf.d.ts.map +1 -1
- package/dist/esm/gguf.js +150 -7
- package/dist/esm/local-apps.d.ts +7 -0
- package/dist/esm/local-apps.d.ts.map +1 -1
- package/dist/esm/local-apps.js +40 -0
- package/dist/esm/model-libraries-snippets.d.ts +3 -0
- package/dist/esm/model-libraries-snippets.d.ts.map +1 -1
- package/dist/esm/model-libraries-snippets.js +111 -18
- package/dist/esm/model-libraries.d.ts +24 -1
- package/dist/esm/model-libraries.d.ts.map +1 -1
- package/dist/esm/model-libraries.js +23 -0
- package/dist/esm/tasks/index.js +1 -1
- package/package.json +1 -2
- package/src/gguf.ts +169 -9
- package/src/local-apps.ts +42 -0
- package/src/model-libraries-snippets.ts +116 -18
- package/src/model-libraries.ts +23 -0
- package/src/tasks/index.ts +1 -1
- package/src/tasks/reinforcement-learning/about.md +1 -1
package/dist/commonjs/gguf.d.ts
CHANGED
|
@@ -1,3 +1,54 @@
|
|
|
1
|
+
export declare enum GGMLFileQuantizationType {
|
|
2
|
+
F32 = 0,
|
|
3
|
+
F16 = 1,
|
|
4
|
+
Q4_0 = 2,
|
|
5
|
+
Q4_1 = 3,
|
|
6
|
+
Q4_1_SOME_F16 = 4,
|
|
7
|
+
Q4_2 = 5,
|
|
8
|
+
Q4_3 = 6,
|
|
9
|
+
Q8_0 = 7,
|
|
10
|
+
Q5_0 = 8,
|
|
11
|
+
Q5_1 = 9,
|
|
12
|
+
Q2_K = 10,
|
|
13
|
+
Q3_K_S = 11,
|
|
14
|
+
Q3_K_M = 12,
|
|
15
|
+
Q3_K_L = 13,
|
|
16
|
+
Q4_K_S = 14,
|
|
17
|
+
Q4_K_M = 15,
|
|
18
|
+
Q5_K_S = 16,
|
|
19
|
+
Q5_K_M = 17,
|
|
20
|
+
Q6_K = 18,
|
|
21
|
+
IQ2_XXS = 19,
|
|
22
|
+
IQ2_XS = 20,
|
|
23
|
+
Q2_K_S = 21,
|
|
24
|
+
IQ3_XS = 22,
|
|
25
|
+
IQ3_XXS = 23,
|
|
26
|
+
IQ1_S = 24,
|
|
27
|
+
IQ4_NL = 25,
|
|
28
|
+
IQ3_S = 26,
|
|
29
|
+
IQ3_M = 27,
|
|
30
|
+
IQ2_S = 28,
|
|
31
|
+
IQ2_M = 29,
|
|
32
|
+
IQ4_XS = 30,
|
|
33
|
+
IQ1_M = 31,
|
|
34
|
+
BF16 = 32,
|
|
35
|
+
Q4_0_4_4 = 33,
|
|
36
|
+
Q4_0_4_8 = 34,
|
|
37
|
+
Q4_0_8_8 = 35,
|
|
38
|
+
TQ1_0 = 36,
|
|
39
|
+
TQ2_0 = 37,
|
|
40
|
+
Q2_K_XL = 1000,
|
|
41
|
+
Q3_K_XL = 1001,
|
|
42
|
+
Q4_K_XL = 1002,
|
|
43
|
+
Q5_K_XL = 1003,
|
|
44
|
+
Q6_K_XL = 1004,
|
|
45
|
+
Q8_K_XL = 1005
|
|
46
|
+
}
|
|
47
|
+
export declare const GGUF_QUANT_RE: RegExp;
|
|
48
|
+
export declare const GGUF_QUANT_RE_GLOBAL: RegExp;
|
|
49
|
+
export declare function parseGGUFQuantLabel(fname: string): string | undefined;
|
|
50
|
+
export declare const GGUF_QUANT_ORDER: GGMLFileQuantizationType[];
|
|
51
|
+
export declare function findNearestQuantType(quant: GGMLFileQuantizationType, availableQuants: GGMLFileQuantizationType[]): GGMLFileQuantizationType | undefined;
|
|
1
52
|
export declare enum GGMLQuantizationType {
|
|
2
53
|
F32 = 0,
|
|
3
54
|
F16 = 1,
|
|
@@ -27,9 +78,8 @@ export declare enum GGMLQuantizationType {
|
|
|
27
78
|
I64 = 27,
|
|
28
79
|
F64 = 28,
|
|
29
80
|
IQ1_M = 29,
|
|
30
|
-
BF16 = 30
|
|
81
|
+
BF16 = 30,
|
|
82
|
+
TQ1_0 = 34,
|
|
83
|
+
TQ2_0 = 35
|
|
31
84
|
}
|
|
32
|
-
export declare const GGUF_QUANT_RE: RegExp;
|
|
33
|
-
export declare const GGUF_QUANT_RE_GLOBAL: RegExp;
|
|
34
|
-
export declare function parseGGUFQuantLabel(fname: string): string | undefined;
|
|
35
85
|
//# sourceMappingURL=gguf.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gguf.d.ts","sourceRoot":"","sources":["../../src/gguf.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gguf.d.ts","sourceRoot":"","sources":["../../src/gguf.ts"],"names":[],"mappings":"AAGA,oBAAY,wBAAwB;IACnC,GAAG,IAAI;IACP,GAAG,IAAI;IACP,IAAI,IAAI;IACR,IAAI,IAAI;IACR,aAAa,IAAI;IACjB,IAAI,IAAI;IACR,IAAI,IAAI;IACR,IAAI,IAAI;IACR,IAAI,IAAI;IACR,IAAI,IAAI;IACR,IAAI,KAAK;IACT,MAAM,KAAK;IACX,MAAM,KAAK;IACX,MAAM,KAAK;IACX,MAAM,KAAK;IACX,MAAM,KAAK;IACX,MAAM,KAAK;IACX,MAAM,KAAK;IACX,IAAI,KAAK;IACT,OAAO,KAAK;IACZ,MAAM,KAAK;IACX,MAAM,KAAK;IACX,MAAM,KAAK;I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AAK,KAAK;CACV"}
|
package/dist/commonjs/gguf.js
CHANGED
|
@@ -1,7 +1,156 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GGUF_QUANT_RE_GLOBAL = exports.GGUF_QUANT_RE = exports.
|
|
3
|
+
exports.GGMLQuantizationType = exports.GGUF_QUANT_ORDER = exports.GGUF_QUANT_RE_GLOBAL = exports.GGUF_QUANT_RE = exports.GGMLFileQuantizationType = void 0;
|
|
4
4
|
exports.parseGGUFQuantLabel = parseGGUFQuantLabel;
|
|
5
|
+
exports.findNearestQuantType = findNearestQuantType;
|
|
6
|
+
// This list is copied from gguf/types.ts, but will all types available (for backward compatibility)
|
|
7
|
+
// NOT to be confused with GGMLQuantizationType, a FileQuantization can contain multiple GGMLQuantizationType
|
|
8
|
+
// For example, Q4_K_M model can contains Q4_K and Q6_K tensors
|
|
9
|
+
var GGMLFileQuantizationType;
|
|
10
|
+
(function (GGMLFileQuantizationType) {
|
|
11
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["F32"] = 0] = "F32";
|
|
12
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["F16"] = 1] = "F16";
|
|
13
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q4_0"] = 2] = "Q4_0";
|
|
14
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q4_1"] = 3] = "Q4_1";
|
|
15
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q4_1_SOME_F16"] = 4] = "Q4_1_SOME_F16";
|
|
16
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q4_2"] = 5] = "Q4_2";
|
|
17
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q4_3"] = 6] = "Q4_3";
|
|
18
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q8_0"] = 7] = "Q8_0";
|
|
19
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q5_0"] = 8] = "Q5_0";
|
|
20
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q5_1"] = 9] = "Q5_1";
|
|
21
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q2_K"] = 10] = "Q2_K";
|
|
22
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q3_K_S"] = 11] = "Q3_K_S";
|
|
23
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q3_K_M"] = 12] = "Q3_K_M";
|
|
24
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q3_K_L"] = 13] = "Q3_K_L";
|
|
25
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q4_K_S"] = 14] = "Q4_K_S";
|
|
26
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q4_K_M"] = 15] = "Q4_K_M";
|
|
27
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q5_K_S"] = 16] = "Q5_K_S";
|
|
28
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q5_K_M"] = 17] = "Q5_K_M";
|
|
29
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q6_K"] = 18] = "Q6_K";
|
|
30
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["IQ2_XXS"] = 19] = "IQ2_XXS";
|
|
31
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["IQ2_XS"] = 20] = "IQ2_XS";
|
|
32
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q2_K_S"] = 21] = "Q2_K_S";
|
|
33
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["IQ3_XS"] = 22] = "IQ3_XS";
|
|
34
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["IQ3_XXS"] = 23] = "IQ3_XXS";
|
|
35
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["IQ1_S"] = 24] = "IQ1_S";
|
|
36
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["IQ4_NL"] = 25] = "IQ4_NL";
|
|
37
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["IQ3_S"] = 26] = "IQ3_S";
|
|
38
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["IQ3_M"] = 27] = "IQ3_M";
|
|
39
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["IQ2_S"] = 28] = "IQ2_S";
|
|
40
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["IQ2_M"] = 29] = "IQ2_M";
|
|
41
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["IQ4_XS"] = 30] = "IQ4_XS";
|
|
42
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["IQ1_M"] = 31] = "IQ1_M";
|
|
43
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["BF16"] = 32] = "BF16";
|
|
44
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q4_0_4_4"] = 33] = "Q4_0_4_4";
|
|
45
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q4_0_4_8"] = 34] = "Q4_0_4_8";
|
|
46
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q4_0_8_8"] = 35] = "Q4_0_8_8";
|
|
47
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["TQ1_0"] = 36] = "TQ1_0";
|
|
48
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["TQ2_0"] = 37] = "TQ2_0";
|
|
49
|
+
// custom quants used by unsloth
|
|
50
|
+
// they are not officially a scheme enum value in GGUF, but only here for naming
|
|
51
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q2_K_XL"] = 1000] = "Q2_K_XL";
|
|
52
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q3_K_XL"] = 1001] = "Q3_K_XL";
|
|
53
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q4_K_XL"] = 1002] = "Q4_K_XL";
|
|
54
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q5_K_XL"] = 1003] = "Q5_K_XL";
|
|
55
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q6_K_XL"] = 1004] = "Q6_K_XL";
|
|
56
|
+
GGMLFileQuantizationType[GGMLFileQuantizationType["Q8_K_XL"] = 1005] = "Q8_K_XL";
|
|
57
|
+
})(GGMLFileQuantizationType || (exports.GGMLFileQuantizationType = GGMLFileQuantizationType = {}));
|
|
58
|
+
const ggufQuants = Object.values(GGMLFileQuantizationType).filter((v) => typeof v === "string");
|
|
59
|
+
exports.GGUF_QUANT_RE = new RegExp(`(?<quant>${ggufQuants.join("|")})` + "(_(?<sizeVariation>[A-Z]+))?");
|
|
60
|
+
exports.GGUF_QUANT_RE_GLOBAL = new RegExp(exports.GGUF_QUANT_RE, "g");
|
|
61
|
+
function parseGGUFQuantLabel(fname) {
|
|
62
|
+
const quantLabel = fname.toUpperCase().match(exports.GGUF_QUANT_RE_GLOBAL)?.at(-1); // if there is multiple quant substrings in a name, we prefer the last one
|
|
63
|
+
return quantLabel;
|
|
64
|
+
}
|
|
65
|
+
// order of quantization, from biggest to smallest
|
|
66
|
+
// this list must be in sync with the order in GGMLFileQuantizationType
|
|
67
|
+
// the gguf.spec.ts tests are using verify if the order is correct
|
|
68
|
+
exports.GGUF_QUANT_ORDER = [
|
|
69
|
+
GGMLFileQuantizationType.F32,
|
|
70
|
+
GGMLFileQuantizationType.BF16,
|
|
71
|
+
GGMLFileQuantizationType.F16,
|
|
72
|
+
GGMLFileQuantizationType.Q8_K_XL,
|
|
73
|
+
GGMLFileQuantizationType.Q8_0,
|
|
74
|
+
// 6-bit quantizations
|
|
75
|
+
GGMLFileQuantizationType.Q6_K_XL,
|
|
76
|
+
GGMLFileQuantizationType.Q6_K,
|
|
77
|
+
// 5-bit quantizations
|
|
78
|
+
GGMLFileQuantizationType.Q5_K_XL,
|
|
79
|
+
GGMLFileQuantizationType.Q5_K_M,
|
|
80
|
+
GGMLFileQuantizationType.Q5_K_S,
|
|
81
|
+
GGMLFileQuantizationType.Q5_0,
|
|
82
|
+
GGMLFileQuantizationType.Q5_1,
|
|
83
|
+
// 4-bit quantizations
|
|
84
|
+
GGMLFileQuantizationType.Q4_K_XL,
|
|
85
|
+
GGMLFileQuantizationType.Q4_K_M,
|
|
86
|
+
GGMLFileQuantizationType.Q4_K_S,
|
|
87
|
+
GGMLFileQuantizationType.IQ4_NL,
|
|
88
|
+
GGMLFileQuantizationType.IQ4_XS,
|
|
89
|
+
GGMLFileQuantizationType.Q4_0_4_4,
|
|
90
|
+
GGMLFileQuantizationType.Q4_0_4_8,
|
|
91
|
+
GGMLFileQuantizationType.Q4_0_8_8,
|
|
92
|
+
GGMLFileQuantizationType.Q4_1_SOME_F16,
|
|
93
|
+
GGMLFileQuantizationType.Q4_0,
|
|
94
|
+
GGMLFileQuantizationType.Q4_1,
|
|
95
|
+
GGMLFileQuantizationType.Q4_2,
|
|
96
|
+
GGMLFileQuantizationType.Q4_3,
|
|
97
|
+
// 3-bit quantizations
|
|
98
|
+
GGMLFileQuantizationType.Q3_K_XL,
|
|
99
|
+
GGMLFileQuantizationType.Q3_K_L,
|
|
100
|
+
GGMLFileQuantizationType.Q3_K_M,
|
|
101
|
+
GGMLFileQuantizationType.Q3_K_S,
|
|
102
|
+
GGMLFileQuantizationType.IQ3_M,
|
|
103
|
+
GGMLFileQuantizationType.IQ3_S,
|
|
104
|
+
GGMLFileQuantizationType.IQ3_XS,
|
|
105
|
+
GGMLFileQuantizationType.IQ3_XXS,
|
|
106
|
+
// 2-bit quantizations
|
|
107
|
+
GGMLFileQuantizationType.Q2_K_XL,
|
|
108
|
+
GGMLFileQuantizationType.Q2_K,
|
|
109
|
+
GGMLFileQuantizationType.Q2_K_S,
|
|
110
|
+
GGMLFileQuantizationType.IQ2_M,
|
|
111
|
+
GGMLFileQuantizationType.IQ2_S,
|
|
112
|
+
GGMLFileQuantizationType.IQ2_XS,
|
|
113
|
+
GGMLFileQuantizationType.IQ2_XXS,
|
|
114
|
+
// 1-bit quantizations
|
|
115
|
+
GGMLFileQuantizationType.IQ1_S,
|
|
116
|
+
GGMLFileQuantizationType.IQ1_M,
|
|
117
|
+
GGMLFileQuantizationType.TQ1_0,
|
|
118
|
+
GGMLFileQuantizationType.TQ2_0,
|
|
119
|
+
];
|
|
120
|
+
// This function finds the nearest quantization type that is less than or equal to the given quantization type.
|
|
121
|
+
// It returns undefined if no such quantization type is found.
|
|
122
|
+
function findNearestQuantType(quant, availableQuants) {
|
|
123
|
+
// Create a map for quick index lookup from the defined order
|
|
124
|
+
const orderMap = new Map();
|
|
125
|
+
exports.GGUF_QUANT_ORDER.forEach((q, index) => {
|
|
126
|
+
orderMap.set(q, index);
|
|
127
|
+
});
|
|
128
|
+
const targetIndex = orderMap.get(quant) ?? 0; // the 0 case should never happen
|
|
129
|
+
// Filter the available quantizations to include only those defined in the order map,
|
|
130
|
+
// then sort them according to the GGUF_QUANT_ORDER (from largest/index 0 to smallest/highest index).
|
|
131
|
+
const sortedAvailable = availableQuants
|
|
132
|
+
.filter((q) => orderMap.has(q))
|
|
133
|
+
.sort((a, b) => (orderMap.get(a) ?? Infinity) - (orderMap.get(b) ?? Infinity));
|
|
134
|
+
// If no valid quantizations are available after filtering
|
|
135
|
+
if (sortedAvailable.length === 0) {
|
|
136
|
+
return undefined;
|
|
137
|
+
}
|
|
138
|
+
// Iterate through the sorted available quantizations (largest to smallest).
|
|
139
|
+
// Find the first one whose order index is >= the target index.
|
|
140
|
+
// This means finding the largest quantization that is smaller than or equal to the target.
|
|
141
|
+
for (const availableQuant of sortedAvailable) {
|
|
142
|
+
// We know the key exists due to the filter above.
|
|
143
|
+
const availableIndex = orderMap.get(availableQuant) ?? 0;
|
|
144
|
+
if (availableIndex >= targetIndex) {
|
|
145
|
+
return availableQuant;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
// If the loop completes, it means all available quantizations are larger (have a smaller index)
|
|
149
|
+
// than the target quantization. In this case, return the "smallest" available quantization,
|
|
150
|
+
// which is the last element in the sorted list (highest index among available).
|
|
151
|
+
return sortedAvailable[sortedAvailable.length - 1];
|
|
152
|
+
}
|
|
153
|
+
// This list is only used to calculate the size of the model, NOT to be confused with the quantization FILE type
|
|
5
154
|
var GGMLQuantizationType;
|
|
6
155
|
(function (GGMLQuantizationType) {
|
|
7
156
|
GGMLQuantizationType[GGMLQuantizationType["F32"] = 0] = "F32";
|
|
@@ -33,11 +182,6 @@ var GGMLQuantizationType;
|
|
|
33
182
|
GGMLQuantizationType[GGMLQuantizationType["F64"] = 28] = "F64";
|
|
34
183
|
GGMLQuantizationType[GGMLQuantizationType["IQ1_M"] = 29] = "IQ1_M";
|
|
35
184
|
GGMLQuantizationType[GGMLQuantizationType["BF16"] = 30] = "BF16";
|
|
185
|
+
GGMLQuantizationType[GGMLQuantizationType["TQ1_0"] = 34] = "TQ1_0";
|
|
186
|
+
GGMLQuantizationType[GGMLQuantizationType["TQ2_0"] = 35] = "TQ2_0";
|
|
36
187
|
})(GGMLQuantizationType || (exports.GGMLQuantizationType = GGMLQuantizationType = {}));
|
|
37
|
-
const ggufQuants = Object.values(GGMLQuantizationType).filter((v) => typeof v === "string");
|
|
38
|
-
exports.GGUF_QUANT_RE = new RegExp(`(?<quant>${ggufQuants.join("|")})` + "(_(?<sizeVariation>[A-Z]+))?");
|
|
39
|
-
exports.GGUF_QUANT_RE_GLOBAL = new RegExp(exports.GGUF_QUANT_RE, "g");
|
|
40
|
-
function parseGGUFQuantLabel(fname) {
|
|
41
|
-
const quantLabel = fname.toUpperCase().match(exports.GGUF_QUANT_RE_GLOBAL)?.at(-1); // if there is multiple quant substrings in a name, we prefer the last one
|
|
42
|
-
return quantLabel;
|
|
43
|
-
}
|
|
@@ -87,6 +87,13 @@ export declare const LOCAL_APPS: {
|
|
|
87
87
|
displayOnModelPage: (model: ModelData) => boolean;
|
|
88
88
|
snippet: (model: ModelData) => LocalAppSnippet[];
|
|
89
89
|
};
|
|
90
|
+
"mlx-lm": {
|
|
91
|
+
prettyLabel: string;
|
|
92
|
+
docsUrl: string;
|
|
93
|
+
mainTask: "text-generation";
|
|
94
|
+
displayOnModelPage: (model: ModelData) => boolean;
|
|
95
|
+
snippet: (model: ModelData) => LocalAppSnippet[];
|
|
96
|
+
};
|
|
90
97
|
tgi: {
|
|
91
98
|
prettyLabel: string;
|
|
92
99
|
docsUrl: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-apps.d.ts","sourceRoot":"","sources":["../../src/local-apps.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAKnD,MAAM,WAAW,eAAe;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,kBAAkB,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,OAAO,CAAC;CAClD,GAAG,CACD;IACA;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,GAAG,CAAC;CACtD,GACD;IACA;;;;OAIG;IACH,OAAO,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,MAAM,GAAG,MAAM,EAAE,GAAG,eAAe,GAAG,eAAe,EAAE,CAAC;CACzG,CACH,CAAC;AAqBF,iBAAS,UAAU,CAAC,KAAK,E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AAO,MAAM,UAAU;;;;;;yBA3MS,SAAS,aAAa,MAAM,KAAG,eAAe,EAAE;;;;;;;yBAsCzC,SAAS,aAAa,MAAM,KAAG,eAAe,EAAE;;;;;;oCAwLzD,SAAS;yBA/IX,SAAS,KAAG,eAAe,EAAE;;;;;;;yBA8E5B,SAAS,KAAG,eAAe,EAAE;;;;;;;yBA7B/B,SAAS,KAAG,eAAe,EAAE;;;;;;;;;;;;;;yBAxEzB,SAAS,aAAa,MAAM,KAAG,eAAe,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAJjD,SAAS,aAAa,MAAM,KAAG,MAAM;;CAsT/B,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,UAAU,CAAC"}
|
|
@@ -185,6 +185,39 @@ const snippetTgi = (model) => {
|
|
|
185
185
|
},
|
|
186
186
|
];
|
|
187
187
|
};
|
|
188
|
+
const snippetMlxLm = (model) => {
|
|
189
|
+
const openaiCurl = [
|
|
190
|
+
"# Calling the OpenAI-compatible server with curl",
|
|
191
|
+
`curl -X POST "http://localhost:8000/v1/chat/completions" \\`,
|
|
192
|
+
` -H "Content-Type: application/json" \\`,
|
|
193
|
+
` --data '{`,
|
|
194
|
+
` "model": "${model.id}",`,
|
|
195
|
+
` "messages": [`,
|
|
196
|
+
` {"role": "user", "content": "Hello"}`,
|
|
197
|
+
` ]`,
|
|
198
|
+
` }'`,
|
|
199
|
+
];
|
|
200
|
+
return [
|
|
201
|
+
{
|
|
202
|
+
title: "Generate or start a chat session",
|
|
203
|
+
setup: ["# Install MLX LM", "uv tool install mlx-lm"].join("\n"),
|
|
204
|
+
content: [
|
|
205
|
+
...(model.tags.includes("conversational")
|
|
206
|
+
? ["# Interactive chat REPL", `mlx_lm.chat --model "${model.id}"`]
|
|
207
|
+
: ["# Generate some text", `mlx_lm.generate --model "${model.id}" --prompt "Once upon a time"`]),
|
|
208
|
+
].join("\n"),
|
|
209
|
+
},
|
|
210
|
+
...(model.tags.includes("conversational")
|
|
211
|
+
? [
|
|
212
|
+
{
|
|
213
|
+
title: "Run an OpenAI-compatible server",
|
|
214
|
+
setup: ["# Install MLX LM", "uv tool install mlx-lm"].join("\n"),
|
|
215
|
+
content: ["# Start the server", `mlx_lm.server --model "${model.id}"`, ...openaiCurl].join("\n"),
|
|
216
|
+
},
|
|
217
|
+
]
|
|
218
|
+
: []),
|
|
219
|
+
];
|
|
220
|
+
};
|
|
188
221
|
/**
|
|
189
222
|
* Add your new local app here.
|
|
190
223
|
*
|
|
@@ -224,6 +257,13 @@ exports.LOCAL_APPS = {
|
|
|
224
257
|
(model.pipeline_tag === "text-generation" || model.pipeline_tag === "image-text-to-text"),
|
|
225
258
|
snippet: snippetVllm,
|
|
226
259
|
},
|
|
260
|
+
"mlx-lm": {
|
|
261
|
+
prettyLabel: "MLX LM",
|
|
262
|
+
docsUrl: "https://github.com/ml-explore/mlx-lm",
|
|
263
|
+
mainTask: "text-generation",
|
|
264
|
+
displayOnModelPage: (model) => model.pipeline_tag === "text-generation" && isMlxModel(model),
|
|
265
|
+
snippet: snippetMlxLm,
|
|
266
|
+
},
|
|
227
267
|
tgi: {
|
|
228
268
|
prettyLabel: "TGI",
|
|
229
269
|
docsUrl: "https://huggingface.co/docs/text-generation-inference/",
|
|
@@ -12,6 +12,7 @@ export declare const depth_anything_v2: (model: ModelData) => string[];
|
|
|
12
12
|
export declare const depth_pro: (model: ModelData) => string[];
|
|
13
13
|
export declare const derm_foundation: () => string[];
|
|
14
14
|
export declare const dia: (model: ModelData) => string[];
|
|
15
|
+
export declare const describe_anything: (model: ModelData) => string[];
|
|
15
16
|
export declare const diffusers: (model: ModelData) => string[];
|
|
16
17
|
export declare const diffusionkit: (model: ModelData) => string[];
|
|
17
18
|
export declare const cartesia_pytorch: (model: ModelData) => string[];
|
|
@@ -37,6 +38,7 @@ export declare const mesh_anything: () => string[];
|
|
|
37
38
|
export declare const open_clip: (model: ModelData) => string[];
|
|
38
39
|
export declare const paddlenlp: (model: ModelData) => string[];
|
|
39
40
|
export declare const perception_encoder: (model: ModelData) => string[];
|
|
41
|
+
export declare const phantom_wan: (model: ModelData) => string[];
|
|
40
42
|
export declare const pyannote_audio_pipeline: (model: ModelData) => string[];
|
|
41
43
|
export declare const pyannote_audio: (model: ModelData) => string[];
|
|
42
44
|
export declare const relik: (model: ModelData) => string[];
|
|
@@ -82,4 +84,5 @@ export declare const audiocraft: (model: ModelData) => string[];
|
|
|
82
84
|
export declare const whisperkit: () => string[];
|
|
83
85
|
export declare const threedtopia_xl: (model: ModelData) => string[];
|
|
84
86
|
export declare const hezar: (model: ModelData) => string[];
|
|
87
|
+
export declare const zonos: (model: ModelData) => string[];
|
|
85
88
|
//# sourceMappingURL=model-libraries-snippets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-libraries-snippets.d.ts","sourceRoot":"","sources":["../../src/model-libraries-snippets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAkBjD,eAAO,MAAM,QAAQ,UAAW,SAAS,KAAG,MAAM,EAKjD,CAAC;AAkBF,eAAO,MAAM,QAAQ,UAAW,SAAS,KAAG,MAAM,EAKjD,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,SAAS,KAAG,MAAM,EAIhD,CAAC;AAEF,eAAO,MAAM,QAAQ,UAAW,SAAS,KAAG,MAAM,EAIjD,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,SAAS,KAAG,MAAM,EAkBlD,CAAC;AAaF,eAAO,MAAM,IAAI,UAAW,SAAS,KAAG,MAAM,EAY7C,CAAC;AAEF,eAAO,MAAM,QAAQ,UAAW,SAAS,KAAG,MAAM,EAIjD,CAAC;AAEF,eAAO,MAAM,KAAK,UAAW,SAAS,KAAG,MAAM,EAI9C,CAAC;AAEF,eAAO,MAAM,cAAc,QAAO,MA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M,OAAO,QAAO,MAAM,EAYhC,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,SAAS,KAAG,MAAM,EAiBpD,CAAC;AAEF,eAAO,MAAM,QAAQ,UAAW,SAAS,KAAG,MAAM,EAYjD,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,SAAS,KAAG,MAAM,EAKpD,CAAC;AAiEF,eAAO,MAAM,KAAK,UAAW,SAAS,KAAG,MAAM,EAI9C,CAAC;AAEF,eAAO,MAAM,GAAG,UAAW,SAAS,KAAG,MAAM,EAY5C,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,SAAS,KAAG,MAAM,EAIlD,CAAC;AAEF,eAAO,MAAM,IAAI,UAAW,SAAS,KAAG,MAAM,EAQ7C,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,SAAS,KAAG,MAAM,EAuBhD,CAAC;AAEF,eAAO,MAAM,IAAI,UAAW,SAAS,KAAG,MAAM,EAI7C,CAAC;AAEF,eAAO,MAAM,MAAM,UAAW,SAAS,KAAG,MAAM,EAI/C,CAAC;AA4BF,eAAO,MAAM,MAAM,UAAW,SAAS,KAAG,MAAM,EAO/C,CAAC;AAEF,eAAO,MAAM,UAAU,UAAW,SAAS,KAAG,MAAM,EAUnD,CAAC;AAEF,eAAO,MAAM,UAAU,QAAO,MAAM,EAYnC,CAAC;AAEF,eAAO,MAAM,cAAc,UAAW,SAAS,KAAG,MAAM,EAKvD,CAAC;AAEF,eAAO,MAAM,KAAK,UAAW,SAAS,KAAG,MAAM,EAI9C,CAAC;AAEF,eAAO,MAAM,KAAK,UAAW,SAAS,KAAG,MAAM,EAiB9C,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.hezar = exports.threedtopia_xl = exports.whisperkit = exports.audiocraft = exports.anemoi = exports.pythae = exports.pxia = exports.outetts = exports.nemo = exports.model2vec = exports.mlx = exports.mlxim = exports.swarmformer = exports.birefnet = exports.ultralytics = exports.chattts = exports.voicecraft = exports.vfimamba = exports.sana = exports.sentis = exports.mlAgents = exports.stableBaselines3 = exports.fasttext = exports.peft = exports.transformersJS = exports.transformers = exports.terratorch = exports.speechbrain = exports.stanza = exports.span_marker = exports.spacy = exports.setfit = exports.sentenceTransformers = void 0;
|
|
3
|
+
exports.fastai = exports.stable_audio_tools = exports.sklearn = exports.seed_story = exports.saelens = exports.timm = exports.tensorflowtts = exports.relik = exports.pyannote_audio = exports.pyannote_audio_pipeline = exports.phantom_wan = exports.perception_encoder = exports.paddlenlp = exports.open_clip = exports.mesh_anything = exports.matanyone = exports.mars5_tts = exports.mamba_ssm = exports.tf_keras = exports.llama_cpp_python = exports.lightning_ir = exports.keras_hub = exports.keras = exports.htrflow = exports.indextts = exports.gliner = exports.flair = exports.fairseq = exports.espnet = exports.espnetASR = exports.espnetTTS = exports.edsnlp = exports.cartesia_mlx = exports.cartesia_pytorch = exports.diffusionkit = exports.diffusers = exports.describe_anything = exports.dia = exports.derm_foundation = exports.depth_pro = exports.depth_anything_v2 = exports.cxr_foundation = exports.bm25s = exports.bertopic = exports.ben2 = exports.audioseal = exports.asteroid = exports.araclip = exports.allennlp = exports.adapters = void 0;
|
|
4
|
+
exports.zonos = exports.hezar = exports.threedtopia_xl = exports.whisperkit = exports.audiocraft = exports.anemoi = exports.pythae = exports.pxia = exports.outetts = exports.nemo = exports.model2vec = exports.mlx = exports.mlxim = exports.swarmformer = exports.birefnet = exports.ultralytics = exports.chattts = exports.voicecraft = exports.vfimamba = exports.sana = exports.sentis = exports.mlAgents = exports.stableBaselines3 = exports.fasttext = exports.peft = exports.transformersJS = exports.transformers = exports.terratorch = exports.speechbrain = exports.stanza = exports.span_marker = exports.spacy = exports.setfit = exports.sentenceTransformers = exports.sampleFactory = exports.sam2 = void 0;
|
|
5
5
|
const library_to_tasks_js_1 = require("./library-to-tasks.js");
|
|
6
6
|
const inputs_js_1 = require("./snippets/inputs.js");
|
|
7
7
|
const common_js_1 = require("./snippets/common.js");
|
|
@@ -225,6 +225,20 @@ output = model.generate(text)
|
|
|
225
225
|
sf.write("simple.mp3", output, 44100)`,
|
|
226
226
|
];
|
|
227
227
|
exports.dia = dia;
|
|
228
|
+
const describe_anything = (model) => [
|
|
229
|
+
`# pip install git+https://github.com/NVlabs/describe-anything
|
|
230
|
+
from huggingface_hub import snapshot_download
|
|
231
|
+
from dam import DescribeAnythingModel
|
|
232
|
+
|
|
233
|
+
snapshot_download(${model.id}, local_dir="checkpoints")
|
|
234
|
+
|
|
235
|
+
dam = DescribeAnythingModel(
|
|
236
|
+
model_path="checkpoints",
|
|
237
|
+
conv_mode="v1",
|
|
238
|
+
prompt_mode="focal_prompt",
|
|
239
|
+
)`,
|
|
240
|
+
];
|
|
241
|
+
exports.describe_anything = describe_anything;
|
|
228
242
|
const diffusersDefaultPrompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k";
|
|
229
243
|
const diffusers_default = (model) => [
|
|
230
244
|
`from diffusers import DiffusionPipeline
|
|
@@ -700,6 +714,18 @@ model = pe.VisionTransformer.from_config("${model.id}", pretrained=True)`;
|
|
|
700
714
|
}
|
|
701
715
|
};
|
|
702
716
|
exports.perception_encoder = perception_encoder;
|
|
717
|
+
const phantom_wan = (model) => [
|
|
718
|
+
`from huggingface_hub import snapshot_download
|
|
719
|
+
from phantom_wan import WANI2V, configs
|
|
720
|
+
|
|
721
|
+
checkpoint_dir = snapshot_download("${model.id}")
|
|
722
|
+
wan_i2v = WanI2V(
|
|
723
|
+
config=configs.WAN_CONFIGS['i2v-14B'],
|
|
724
|
+
checkpoint_dir=checkpoint_dir,
|
|
725
|
+
)
|
|
726
|
+
video = wan_i2v.generate(text_prompt, image_prompt)`,
|
|
727
|
+
];
|
|
728
|
+
exports.phantom_wan = phantom_wan;
|
|
703
729
|
const pyannote_audio_pipeline = (model) => [
|
|
704
730
|
`from pyannote.audio import Pipeline
|
|
705
731
|
|
|
@@ -1076,12 +1102,27 @@ const transformers = (model) => {
|
|
|
1076
1102
|
].join("\n");
|
|
1077
1103
|
}
|
|
1078
1104
|
if (model.pipeline_tag && library_to_tasks_js_1.LIBRARY_TASK_MAPPING.transformers?.includes(model.pipeline_tag)) {
|
|
1079
|
-
const pipelineSnippet = [
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1105
|
+
const pipelineSnippet = [
|
|
1106
|
+
"# Use a pipeline as a high-level helper",
|
|
1107
|
+
"from transformers import pipeline",
|
|
1108
|
+
"",
|
|
1109
|
+
`pipe = pipeline("${model.pipeline_tag}", model="${model.id}"` + remote_code_snippet + ")",
|
|
1110
|
+
];
|
|
1111
|
+
if (model.tags.includes("conversational")) {
|
|
1112
|
+
if (model.tags.includes("image-text-to-text")) {
|
|
1113
|
+
pipelineSnippet.push("messages = [", [
|
|
1114
|
+
" {",
|
|
1115
|
+
' "role": "user",',
|
|
1116
|
+
' "content": [',
|
|
1117
|
+
' {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},',
|
|
1118
|
+
' {"type": "text", "text": "What animal is on the candy?"}',
|
|
1119
|
+
" ]",
|
|
1120
|
+
" },",
|
|
1121
|
+
].join("\n"), "]");
|
|
1122
|
+
}
|
|
1123
|
+
else {
|
|
1124
|
+
pipelineSnippet.push("messages = [", ' {"role": "user", "content": "Who are you?"},', "]");
|
|
1125
|
+
}
|
|
1085
1126
|
pipelineSnippet.push("pipe(messages)");
|
|
1086
1127
|
}
|
|
1087
1128
|
return [pipelineSnippet.join("\n"), autoSnippet];
|
|
@@ -1260,27 +1301,63 @@ model = SwarmFormerModel.from_pretrained("${model.id}")
|
|
|
1260
1301
|
];
|
|
1261
1302
|
exports.swarmformer = swarmformer;
|
|
1262
1303
|
const mlx_unknown = (model) => [
|
|
1263
|
-
|
|
1304
|
+
`# Download the model from the Hub
|
|
1305
|
+
pip install huggingface_hub hf_transfer
|
|
1264
1306
|
|
|
1265
1307
|
export HF_HUB_ENABLE_HF_TRANSFER=1
|
|
1266
1308
|
huggingface-cli download --local-dir ${nameWithoutNamespace(model.id)} ${model.id}`,
|
|
1267
1309
|
];
|
|
1268
1310
|
const mlxlm = (model) => [
|
|
1269
|
-
|
|
1311
|
+
`# Make sure mlx-lm is installed
|
|
1312
|
+
pip install --upgrade mlx-lm
|
|
1270
1313
|
|
|
1271
|
-
|
|
1314
|
+
# Generate text with mlx-lm
|
|
1315
|
+
from mlx_lm import load, generate
|
|
1316
|
+
|
|
1317
|
+
model, tokenizer = load("${model.id}")
|
|
1318
|
+
|
|
1319
|
+
prompt = "Once upon a time in"
|
|
1320
|
+
text = generate(model, tokenizer, prompt=prompt, verbose=True)`,
|
|
1272
1321
|
];
|
|
1273
1322
|
const mlxchat = (model) => [
|
|
1274
|
-
|
|
1323
|
+
`# Make sure mlx-lm is installed
|
|
1324
|
+
pip install --upgrade mlx-lm
|
|
1325
|
+
|
|
1326
|
+
# Generate text with mlx-lm
|
|
1327
|
+
from mlx_lm import load, generate
|
|
1275
1328
|
|
|
1276
|
-
|
|
1329
|
+
model, tokenizer = load("${model.id}")
|
|
1330
|
+
|
|
1331
|
+
prompt = "Write a story about Einstein"
|
|
1332
|
+
messages = [{"role": "user", "content": prompt}]
|
|
1333
|
+
prompt = tokenizer.apply_chat_template(
|
|
1334
|
+
messages, add_generation_prompt=True
|
|
1335
|
+
)
|
|
1336
|
+
|
|
1337
|
+
text = generate(model, tokenizer, prompt=prompt, verbose=True)`,
|
|
1277
1338
|
];
|
|
1278
1339
|
const mlxvlm = (model) => [
|
|
1279
|
-
`
|
|
1340
|
+
`Make sure mlx-vlm is installed
|
|
1341
|
+
from mlx_vlm import load, generate
|
|
1342
|
+
from mlx_vlm.prompt_utils import apply_chat_template
|
|
1343
|
+
from mlx_vlm.utils import load_config
|
|
1344
|
+
|
|
1345
|
+
# Load the model
|
|
1346
|
+
model, processor = load("${model.id}")
|
|
1347
|
+
config = load_config("${model.id}")
|
|
1348
|
+
|
|
1349
|
+
# Prepare input
|
|
1350
|
+
image = ["http://images.cocodataset.org/val2017/000000039769.jpg"]
|
|
1351
|
+
prompt = "Describe this image."
|
|
1352
|
+
|
|
1353
|
+
# Apply chat template
|
|
1354
|
+
formatted_prompt = apply_chat_template(
|
|
1355
|
+
processor, config, prompt, num_images=1
|
|
1356
|
+
)
|
|
1280
1357
|
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1358
|
+
# Generate output
|
|
1359
|
+
output = generate(model, processor, formatted_prompt, image)
|
|
1360
|
+
print(output)`,
|
|
1284
1361
|
];
|
|
1285
1362
|
const mlxim = (model) => [
|
|
1286
1363
|
`from mlxim.model import create_model
|
|
@@ -1289,11 +1366,11 @@ model = create_model(${model.id})`,
|
|
|
1289
1366
|
];
|
|
1290
1367
|
exports.mlxim = mlxim;
|
|
1291
1368
|
const mlx = (model) => {
|
|
1292
|
-
if (model.
|
|
1369
|
+
if (model.pipeline_tag === "image-text-to-text") {
|
|
1293
1370
|
return mlxvlm(model);
|
|
1294
1371
|
}
|
|
1295
|
-
if (model.
|
|
1296
|
-
if (model.
|
|
1372
|
+
if (model.pipeline_tag === "text-generation") {
|
|
1373
|
+
if (model.tags.includes("conversational")) {
|
|
1297
1374
|
return mlxchat(model);
|
|
1298
1375
|
}
|
|
1299
1376
|
else {
|
|
@@ -1430,4 +1507,23 @@ const hezar = (model) => [
|
|
|
1430
1507
|
model = Model.load("${model.id}")`,
|
|
1431
1508
|
];
|
|
1432
1509
|
exports.hezar = hezar;
|
|
1510
|
+
const zonos = (model) => [
|
|
1511
|
+
`# pip install git+https://github.com/Zyphra/Zonos.git
|
|
1512
|
+
import torchaudio
|
|
1513
|
+
from zonos.model import Zonos
|
|
1514
|
+
from zonos.conditioning import make_cond_dict
|
|
1515
|
+
|
|
1516
|
+
model = Zonos.from_pretrained("${model.id}", device="cuda")
|
|
1517
|
+
|
|
1518
|
+
wav, sr = torchaudio.load("speaker.wav") # 5-10s reference clip
|
|
1519
|
+
speaker = model.make_speaker_embedding(wav, sr)
|
|
1520
|
+
|
|
1521
|
+
cond = make_cond_dict(text="Hello, world!", speaker=speaker, language="en-us")
|
|
1522
|
+
codes = model.generate(model.prepare_conditioning(cond))
|
|
1523
|
+
|
|
1524
|
+
audio = model.autoencoder.decode(codes)[0].cpu()
|
|
1525
|
+
torchaudio.save("sample.wav", audio, model.autoencoder.sampling_rate)
|
|
1526
|
+
`,
|
|
1527
|
+
];
|
|
1528
|
+
exports.zonos = zonos;
|
|
1433
1529
|
//#endregion
|
|
@@ -226,6 +226,13 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
226
226
|
filter: false;
|
|
227
227
|
countDownloads: string;
|
|
228
228
|
};
|
|
229
|
+
"describe-anything": {
|
|
230
|
+
prettyLabel: string;
|
|
231
|
+
repoName: string;
|
|
232
|
+
repoUrl: string;
|
|
233
|
+
snippets: (model: ModelData) => string[];
|
|
234
|
+
filter: false;
|
|
235
|
+
};
|
|
229
236
|
"dia-tts": {
|
|
230
237
|
prettyLabel: string;
|
|
231
238
|
repoName: string;
|
|
@@ -653,6 +660,14 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
653
660
|
snippets: (model: ModelData) => string[];
|
|
654
661
|
countDownloads: string;
|
|
655
662
|
};
|
|
663
|
+
"phantom-wan": {
|
|
664
|
+
prettyLabel: string;
|
|
665
|
+
repoName: string;
|
|
666
|
+
repoUrl: string;
|
|
667
|
+
snippets: (model: ModelData) => string[];
|
|
668
|
+
filter: false;
|
|
669
|
+
countDownloads: string;
|
|
670
|
+
};
|
|
656
671
|
pxia: {
|
|
657
672
|
prettyLabel: string;
|
|
658
673
|
repoName: string;
|
|
@@ -999,6 +1014,14 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
999
1014
|
countDownloads: string;
|
|
1000
1015
|
snippets: (model: ModelData) => string[];
|
|
1001
1016
|
};
|
|
1017
|
+
zonos: {
|
|
1018
|
+
prettyLabel: string;
|
|
1019
|
+
repoName: string;
|
|
1020
|
+
repoUrl: string;
|
|
1021
|
+
docsUrl: string;
|
|
1022
|
+
snippets: (model: ModelData) => string[];
|
|
1023
|
+
filter: false;
|
|
1024
|
+
};
|
|
1002
1025
|
"3dtopia-xl": {
|
|
1003
1026
|
prettyLabel: string;
|
|
1004
1027
|
repoName: string;
|
|
@@ -1010,5 +1033,5 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
1010
1033
|
};
|
|
1011
1034
|
export type ModelLibraryKey = keyof typeof MODEL_LIBRARIES_UI_ELEMENTS;
|
|
1012
1035
|
export declare const ALL_MODEL_LIBRARY_KEYS: ModelLibraryKey[];
|
|
1013
|
-
export declare const ALL_DISPLAY_MODEL_LIBRARY_KEYS: ("adapter-transformers" | "allennlp" | "anemoi" | "araclip" | "asteroid" | "audiocraft" | "audioseal" | "ben2" | "bertopic" | "big_vision" | "birder" | "birefnet" | "bm25s" | "champ" | "chat_tts" | "colpali" | "comet" | "cosmos" | "cxr-foundation" | "deepforest" | "depth-anything-v2" | "depth-pro" | "derm-foundation" | "dia-tts" | "diffree" | "diffusers" | "diffusionkit" | "doctr" | "cartesia_pytorch" | "cartesia_mlx" | "clipscope" | "cosyvoice" | "cotracker" | "edsnlp" | "elm" | "espnet" | "fairseq" | "fastai" | "fasttext" | "flair" | "gemma.cpp" | "geometry-crafter" | "gliner" | "glyph-byt5" | "grok" | "hallo" | "hezar" | "htrflow" | "hunyuan-dit" | "hunyuan3d-2" | "imstoucan" | "index-tts" | "infinite-you" | "keras" | "tf-keras" | "keras-hub" | "k2" | "lightning-ir" | "liveportrait" | "llama-cpp-python" | "mini-omni2" | "mindspore" | "mamba-ssm" | "mars5-tts" | "matanyone" | "mesh-anything" | "merlin" | "medvae" | "mitie" | "ml-agents" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "moshi" | "nemo" | "open-oasis" | "open_clip" | "open-sora" | "outetts" | "paddlenlp" | "peft" | "perception-encoder" | "pxia" | "pyannote-audio" | "py-feat" | "pythae" | "recurrentgemma" | "relik" | "refiners" | "reverb" | "saelens" | "sam2" | "sample-factory" | "sapiens" | "sentence-transformers" | "setfit" | "sklearn" | "spacy" | "span-marker" | "speechbrain" | "ssr-speech" | "stable-audio-tools" | "diffusion-single-file" | "seed-story" | "soloaudio" | "stable-baselines3" | "stanza" | "swarmformer" | "f5-tts" | "genmo" | "tensorflowtts" | "tabpfn" | "terratorch" | "tic-clip" | "timesfm" | "timm" | "transformers" | "transformers.js" | "trellis" | "ultralytics" | "uni-3dar" | "unity-sentis" | "sana" | "vfi-mamba" | "voicecraft" | "wham" | "whisperkit" | "yolov10" | "3dtopia-xl")[];
|
|
1036
|
+
export declare const ALL_DISPLAY_MODEL_LIBRARY_KEYS: ("adapter-transformers" | "allennlp" | "anemoi" | "araclip" | "asteroid" | "audiocraft" | "audioseal" | "ben2" | "bertopic" | "big_vision" | "birder" | "birefnet" | "bm25s" | "champ" | "chat_tts" | "colpali" | "comet" | "cosmos" | "cxr-foundation" | "deepforest" | "depth-anything-v2" | "depth-pro" | "derm-foundation" | "describe-anything" | "dia-tts" | "diffree" | "diffusers" | "diffusionkit" | "doctr" | "cartesia_pytorch" | "cartesia_mlx" | "clipscope" | "cosyvoice" | "cotracker" | "edsnlp" | "elm" | "espnet" | "fairseq" | "fastai" | "fasttext" | "flair" | "gemma.cpp" | "geometry-crafter" | "gliner" | "glyph-byt5" | "grok" | "hallo" | "hezar" | "htrflow" | "hunyuan-dit" | "hunyuan3d-2" | "imstoucan" | "index-tts" | "infinite-you" | "keras" | "tf-keras" | "keras-hub" | "k2" | "lightning-ir" | "liveportrait" | "llama-cpp-python" | "mini-omni2" | "mindspore" | "mamba-ssm" | "mars5-tts" | "matanyone" | "mesh-anything" | "merlin" | "medvae" | "mitie" | "ml-agents" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "moshi" | "nemo" | "open-oasis" | "open_clip" | "open-sora" | "outetts" | "paddlenlp" | "peft" | "perception-encoder" | "phantom-wan" | "pxia" | "pyannote-audio" | "py-feat" | "pythae" | "recurrentgemma" | "relik" | "refiners" | "reverb" | "saelens" | "sam2" | "sample-factory" | "sapiens" | "sentence-transformers" | "setfit" | "sklearn" | "spacy" | "span-marker" | "speechbrain" | "ssr-speech" | "stable-audio-tools" | "diffusion-single-file" | "seed-story" | "soloaudio" | "stable-baselines3" | "stanza" | "swarmformer" | "f5-tts" | "genmo" | "tensorflowtts" | "tabpfn" | "terratorch" | "tic-clip" | "timesfm" | "timm" | "transformers" | "transformers.js" | "trellis" | "ultralytics" | "uni-3dar" | "unity-sentis" | "sana" | "vfi-mamba" | "voicecraft" | "wham" | "whisperkit" | "yolov10" | "zonos" | "3dtopia-xl")[];
|
|
1014
1037
|
//# sourceMappingURL=model-libraries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-libraries.d.ts","sourceRoot":"","sources":["../../src/model-libraries.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEzE;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,MAAM,EAAE,CAAC;IAC1C;;;;;OAKG;IACH,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,2BAA2B
|
|
1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