@huggingface/tasks 0.21.38 → 0.21.40
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/local-apps.d.ts +1 -1
- package/dist/commonjs/local-apps.d.ts.map +1 -1
- package/dist/commonjs/local-apps.js +10 -46
- package/dist/commonjs/local-apps.spec.js +5 -19
- package/dist/commonjs/model-libraries-snippets.d.ts +4 -0
- package/dist/commonjs/model-libraries-snippets.d.ts.map +1 -1
- package/dist/commonjs/model-libraries-snippets.js +69 -3
- package/dist/commonjs/model-libraries.d.ts +49 -1
- package/dist/commonjs/model-libraries.d.ts.map +1 -1
- package/dist/commonjs/model-libraries.js +48 -0
- package/dist/esm/local-apps.d.ts +1 -1
- package/dist/esm/local-apps.d.ts.map +1 -1
- package/dist/esm/local-apps.js +10 -46
- package/dist/esm/local-apps.spec.js +5 -19
- package/dist/esm/model-libraries-snippets.d.ts +4 -0
- package/dist/esm/model-libraries-snippets.d.ts.map +1 -1
- package/dist/esm/model-libraries-snippets.js +62 -0
- package/dist/esm/model-libraries.d.ts +49 -1
- package/dist/esm/model-libraries.d.ts.map +1 -1
- package/dist/esm/model-libraries.js +48 -0
- package/package.json +1 -1
- package/src/local-apps.spec.ts +6 -28
- package/src/local-apps.ts +10 -53
- package/src/model-libraries-snippets.ts +68 -0
- package/src/model-libraries.ts +48 -0
|
@@ -267,25 +267,17 @@ curl -X POST "http://localhost:8000/v1/chat/completions" \\
|
|
|
267
267
|
expect(displayOnModelPage(model)).toBe(false);
|
|
268
268
|
});
|
|
269
269
|
it("unsloth tagged model", async () => {
|
|
270
|
-
const { displayOnModelPage,
|
|
270
|
+
const { displayOnModelPage, deeplink } = LOCAL_APPS.unsloth;
|
|
271
271
|
const model = {
|
|
272
272
|
id: "some-user/my-unsloth-finetune",
|
|
273
273
|
tags: ["unsloth", "conversational"],
|
|
274
274
|
inference: "",
|
|
275
275
|
};
|
|
276
276
|
expect(displayOnModelPage(model)).toBe(true);
|
|
277
|
-
|
|
278
|
-
expect(snippet[0].setup).toBe("curl -fsSL https://unsloth.ai/install.sh | sh");
|
|
279
|
-
expect(snippet[0].content).toBe("# Run unsloth studio\nunsloth studio -H 0.0.0.0 -p 8888\n# Then open http://localhost:8888 in your browser\n# Search for some-user/my-unsloth-finetune to start chatting");
|
|
280
|
-
expect(snippet[1].setup).toBe("irm https://unsloth.ai/install.ps1 | iex");
|
|
281
|
-
expect(snippet[1].content).toBe(snippet[0].content);
|
|
282
|
-
expect(snippet[2].setup).toBe("# No setup required");
|
|
283
|
-
expect(snippet[2].content).toBe("# Open https://huggingface.co/spaces/unsloth/studio in your browser\n# Search for some-user/my-unsloth-finetune to start chatting");
|
|
284
|
-
expect(snippet[3].setup).toBe("pip install unsloth");
|
|
285
|
-
expect(snippet[3].content).toBe('from unsloth import FastModel\nmodel, tokenizer = FastModel.from_pretrained(\n model_name="some-user/my-unsloth-finetune",\n max_seq_length=2048,\n)');
|
|
277
|
+
expect(deeplink(model, undefined).href).toBe("unsloth://open_from_hf?model=some-user%2Fmy-unsloth-finetune");
|
|
286
278
|
});
|
|
287
279
|
it("unsloth namespace gguf model", async () => {
|
|
288
|
-
const { displayOnModelPage,
|
|
280
|
+
const { displayOnModelPage, deeplink } = LOCAL_APPS.unsloth;
|
|
289
281
|
const model = {
|
|
290
282
|
id: "unsloth/Llama-3.2-3B-Instruct-GGUF",
|
|
291
283
|
tags: ["conversational"],
|
|
@@ -293,14 +285,8 @@ curl -X POST "http://localhost:8000/v1/chat/completions" \\
|
|
|
293
285
|
inference: "",
|
|
294
286
|
};
|
|
295
287
|
expect(displayOnModelPage(model)).toBe(true);
|
|
296
|
-
|
|
297
|
-
expect(
|
|
298
|
-
expect(snippet[0].content).toBe("# Run unsloth studio\nunsloth studio -H 0.0.0.0 -p 8888\n# Then open http://localhost:8888 in your browser\n# Search for unsloth/Llama-3.2-3B-Instruct-GGUF to start chatting");
|
|
299
|
-
expect(snippet[1].setup).toBe("irm https://unsloth.ai/install.ps1 | iex");
|
|
300
|
-
expect(snippet[1].content).toBe(snippet[0].content);
|
|
301
|
-
expect(snippet[2].setup).toBe("# No setup required");
|
|
302
|
-
expect(snippet[2].content).toBe("# Open https://huggingface.co/spaces/unsloth/studio in your browser\n# Search for unsloth/Llama-3.2-3B-Instruct-GGUF to start chatting");
|
|
303
|
-
expect(snippet).toHaveLength(3); // GGUF models only get 3 snippets
|
|
288
|
+
expect(deeplink(model, undefined).href).toBe("unsloth://open_from_hf?model=unsloth%2FLlama-3.2-3B-Instruct-GGUF");
|
|
289
|
+
expect(deeplink(model, "Llama-3.2-3B-Instruct-UD-Q4_K_XL.gguf").href).toBe("unsloth://open_from_hf?model=unsloth%2FLlama-3.2-3B-Instruct-GGUF&file=Llama-3.2-3B-Instruct-UD-Q4_K_XL.gguf");
|
|
304
290
|
});
|
|
305
291
|
it("non unsloth namespace gguf model", async () => {
|
|
306
292
|
const { displayOnModelPage } = LOCAL_APPS.unsloth;
|
|
@@ -12,6 +12,7 @@ export declare const chronos_forecasting: (model: ModelData) => string[];
|
|
|
12
12
|
export declare const collectorvision: (model: ModelData) => string[];
|
|
13
13
|
export declare const colipri: (model: ModelData) => string[];
|
|
14
14
|
export declare const sap_rpt_one_oss: () => string[];
|
|
15
|
+
export declare const cortiq: (model: ModelData) => string[];
|
|
15
16
|
export declare const cxr_foundation: () => string[];
|
|
16
17
|
export declare const depth_anything_v2: (model: ModelData) => string[];
|
|
17
18
|
export declare const depth_pro: (model: ModelData) => string[];
|
|
@@ -48,10 +49,12 @@ export declare const tf_keras: (model: ModelData) => string[];
|
|
|
48
49
|
export declare const mamba_ssm: (model: ModelData) => string[];
|
|
49
50
|
export declare const mars5_tts: (model: ModelData) => string[];
|
|
50
51
|
export declare const matanyone: (model: ModelData) => string[];
|
|
52
|
+
export declare const memra: (model: ModelData) => string[];
|
|
51
53
|
export declare const mesh_anything: () => string[];
|
|
52
54
|
export declare const multimolecule: (model: ModelData) => string[];
|
|
53
55
|
export declare const open_clip: (model: ModelData) => string[];
|
|
54
56
|
export declare const openasr: (model: ModelData) => string[];
|
|
57
|
+
export declare const opendde: () => string[];
|
|
55
58
|
export declare const paddlenlp: (model: ModelData) => string[];
|
|
56
59
|
export declare const paddleocr: (model: ModelData) => string[];
|
|
57
60
|
export declare const perception_encoder: (model: ModelData) => string[];
|
|
@@ -61,6 +64,7 @@ export declare const pyannote_audio_pipeline: (model: ModelData) => string[];
|
|
|
61
64
|
export declare const pyannote_audio: (model: ModelData) => string[];
|
|
62
65
|
export declare const relik: (model: ModelData) => string[];
|
|
63
66
|
export declare const renderformer: (model: ModelData) => string[];
|
|
67
|
+
export declare const routee_powertrain: (model: ModelData) => string[];
|
|
64
68
|
export declare const tensorflowtts: (model: ModelData) => string[];
|
|
65
69
|
export declare const timm: (model: ModelData) => string[];
|
|
66
70
|
export declare const saelens: () => string[];
|
|
@@ -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;AAoBjD,eAAO,MAAM,QAAQ,GAAI,OAAO,SAAS,KAAG,MAAM,EAOjD,CAAC;AAkBF,eAAO,MAAM,QAAQ,GAAI,OAAO,SAAS,KAAG,MAAM,EAKjD,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,OAAO,SAAS,KAAG,MAAM,EAIhD,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAO,SAAS,KAAG,MAAM,EAIjD,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,SAAS,KAAG,MAAM,EAkBlD,CAAC;AAaF,eAAO,MAAM,IAAI,GAAI,OAAO,SAAS,KAAG,MAAM,EAY7C,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAO,SAAS,KAAG,MAAM,EAIjD,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,OAAO,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MAAM,KAAK,GAAI,OAAO,SAAS,KAAG,MAAM,EA0B9C,CAAC;AAuDF,eAAO,MAAM,IAAI,GAAI,OAAO,SAAS,KAAG,MAAM,EAQ7C,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,OAAO,SAAS,KAAG,MAAM,EAyBhD,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,OAAO,SAAS,KAAG,MAAM,EAI7C,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,OAAO,SAAS,KAAG,MAAM,EAI/C,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,SAAS,KAAG,MAAM,EAqBlD,CAAC;AA4BF,eAAO,MAAM,MAAM,GAAI,OAAO,SAAS,KAAG,MAAM,EAO/C,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,OAAO,SAAS,KAAG,MAAM,EAUnD,CAAC;AAEF,eAAO,MAAM,UAAU,QAAO,MAAM,EAYnC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,SAAS,KAAG,MAAM,EAKvD,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,OAAO,SAAS,KAAG,MAAM,EAI9C,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,OAAO,SAAS,KAAG,MAAM,EAiB9C,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,OAAO,SAAS,KAAG,MAAM,EAgD9C,CAAC"}
|
|
@@ -212,6 +212,30 @@ r2 = r2_score(y_test, predictions)
|
|
|
212
212
|
print("R² Score:", r2)`;
|
|
213
213
|
return [installSnippet, classificationSnippet, regressionsSnippet];
|
|
214
214
|
};
|
|
215
|
+
export const cortiq = (model) => {
|
|
216
|
+
const setup = `# one Rust binary, no additional dependencies
|
|
217
|
+
cargo install cortiq-cli # or a prebuilt binary from github.com/infosave2007/cmf/releases
|
|
218
|
+
hf download ${model.id} --include "*.cmf" --local-dir .
|
|
219
|
+
ls *.cmf # some repos ship more than one quantization`;
|
|
220
|
+
if (model.pipeline_tag === "text-to-image") {
|
|
221
|
+
return [setup, `cortiq imagine FILE.cmf --prompt "a red fox in a snowy forest" --out fox.ppm`];
|
|
222
|
+
}
|
|
223
|
+
if (model.pipeline_tag === "text-to-video") {
|
|
224
|
+
return [setup, `cortiq animate FILE.cmf --prompt "a corgi in a chef hat flipping a pancake" --out clip.avi`];
|
|
225
|
+
}
|
|
226
|
+
if (model.pipeline_tag === "text-to-audio") {
|
|
227
|
+
return [
|
|
228
|
+
setup,
|
|
229
|
+
`cortiq music FILE.cmf --prompt "dream pop, warm analog synths, brushed drums" \\
|
|
230
|
+
--lyrics "[verse] the tide came in and took the map" --seconds 20 --out song.wav`,
|
|
231
|
+
];
|
|
232
|
+
}
|
|
233
|
+
return [
|
|
234
|
+
setup,
|
|
235
|
+
`cortiq run FILE.cmf --prompt "What is the capital of France?"`,
|
|
236
|
+
`cortiq serve FILE.cmf --port 8080 # OpenAI-compatible server`,
|
|
237
|
+
];
|
|
238
|
+
};
|
|
215
239
|
export const cxr_foundation = () => [
|
|
216
240
|
`# pip install git+https://github.com/Google-Health/cxr-foundation.git#subdirectory=python
|
|
217
241
|
|
|
@@ -1303,6 +1327,17 @@ model = MatAnyone.from_pretrained("${model.id}")`,
|
|
|
1303
1327
|
from matanyone import InferenceCore
|
|
1304
1328
|
processor = InferenceCore("${model.id}")`,
|
|
1305
1329
|
];
|
|
1330
|
+
export const memra = (model) => [
|
|
1331
|
+
`# memra serves NVIDIA Blackwell workstation and consumer cards (sm_120a), with a
|
|
1332
|
+
# compile-gated Hopper lane. Prebuilt binaries need Linux x86_64 and driver 580+,
|
|
1333
|
+
# and no CUDA toolkit.
|
|
1334
|
+
curl -fsSL https://raw.githubusercontent.com/avifenesh/memra/main/tools/install.sh | sh`,
|
|
1335
|
+
`# One chat-templated generation. In a repo with several GGUF files, append
|
|
1336
|
+
# :<substring> to choose one, for example hf:${model.id}:Q4_K_M
|
|
1337
|
+
MEMRA_CHAT=1 run-gen hf:${model.id} --prompt "Explain KV caches in one sentence."`,
|
|
1338
|
+
`# Or an OpenAI-compatible server on 127.0.0.1:8080.
|
|
1339
|
+
MEMRA_MODELS="model=hf:${model.id}" memra-server`,
|
|
1340
|
+
];
|
|
1306
1341
|
export const mesh_anything = () => [
|
|
1307
1342
|
`# Install from https://github.com/buaacyw/MeshAnything.git
|
|
1308
1343
|
|
|
@@ -1368,6 +1403,12 @@ openasr pull ${modelId}
|
|
|
1368
1403
|
openasr transcribe audio.wav --model ${modelId}`,
|
|
1369
1404
|
];
|
|
1370
1405
|
};
|
|
1406
|
+
export const opendde = () => [
|
|
1407
|
+
`# pip install 'opendde[gpu]'
|
|
1408
|
+
# Checkpoints are fetched from the Hub into $OPENDDE_ROOT_DIR (default ~/.cache/opendde)
|
|
1409
|
+
opendde doctor
|
|
1410
|
+
opendde pred -i examples/input.json -o ./output -n opendde_v1`,
|
|
1411
|
+
];
|
|
1371
1412
|
export const paddlenlp = (model) => {
|
|
1372
1413
|
const architecture = model.config?.architectures?.[0];
|
|
1373
1414
|
// interpolated as a Python class name, so a non-identifier is treated as absent
|
|
@@ -1547,6 +1588,27 @@ export const renderformer = (model) => [
|
|
|
1547
1588
|
from renderformer import RenderFormerRenderingPipeline
|
|
1548
1589
|
pipeline = RenderFormerRenderingPipeline.from_pretrained("${model.id}")`,
|
|
1549
1590
|
];
|
|
1591
|
+
export const routee_powertrain = (model) => [
|
|
1592
|
+
`# pip install routee.powertrain
|
|
1593
|
+
import pandas as pd
|
|
1594
|
+
import routee.powertrain as pt
|
|
1595
|
+
from routee.powertrain.registry import HFRegistry
|
|
1596
|
+
|
|
1597
|
+
registry = HFRegistry(repo_id="${model.id}")
|
|
1598
|
+
|
|
1599
|
+
# find a vehicle: filter by make, model, year, powertrain type, features, ...
|
|
1600
|
+
pt.query_available_models(make="tesla", model="model 3", registry=registry)
|
|
1601
|
+
|
|
1602
|
+
# load one by its id: "<make>/<vehicle_slug>/<year>/<config_slug>"
|
|
1603
|
+
model = pt.load_model("tesla/model_3_bev/2022/rf_c3326385", registry=registry)
|
|
1604
|
+
|
|
1605
|
+
links = pd.DataFrame({
|
|
1606
|
+
"distance": [0.1, 0.2], # miles
|
|
1607
|
+
"speed_mph": [30, 55],
|
|
1608
|
+
"grade_percent": [-2.0, 1.0],
|
|
1609
|
+
})
|
|
1610
|
+
model.predict(links)`,
|
|
1611
|
+
];
|
|
1550
1612
|
const tensorflowttsTextToMel = (model) => [
|
|
1551
1613
|
`from tensorflow_tts.inference import AutoProcessor, TFAutoModel
|
|
1552
1614
|
|
|
@@ -330,6 +330,14 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
330
330
|
repoUrl: string;
|
|
331
331
|
countDownloads: string;
|
|
332
332
|
};
|
|
333
|
+
cortiq: {
|
|
334
|
+
prettyLabel: string;
|
|
335
|
+
repoName: string;
|
|
336
|
+
repoUrl: string;
|
|
337
|
+
docsUrl: string;
|
|
338
|
+
snippets: (model: ModelData) => string[];
|
|
339
|
+
countDownloads: string;
|
|
340
|
+
};
|
|
333
341
|
cosmos: {
|
|
334
342
|
prettyLabel: string;
|
|
335
343
|
repoName: string;
|
|
@@ -918,6 +926,13 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
918
926
|
snippets: (model: ModelData) => string[];
|
|
919
927
|
filter: false;
|
|
920
928
|
};
|
|
929
|
+
memra: {
|
|
930
|
+
prettyLabel: string;
|
|
931
|
+
repoName: string;
|
|
932
|
+
repoUrl: string;
|
|
933
|
+
snippets: (model: ModelData) => string[];
|
|
934
|
+
filter: false;
|
|
935
|
+
};
|
|
921
936
|
"mesh-anything": {
|
|
922
937
|
prettyLabel: string;
|
|
923
938
|
repoName: string;
|
|
@@ -1009,6 +1024,14 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
1009
1024
|
snippets: (model: ModelData) => string[];
|
|
1010
1025
|
filter: false;
|
|
1011
1026
|
};
|
|
1027
|
+
"montreal-forced-aligner": {
|
|
1028
|
+
prettyLabel: string;
|
|
1029
|
+
repoName: string;
|
|
1030
|
+
repoUrl: string;
|
|
1031
|
+
docsUrl: string;
|
|
1032
|
+
filter: false;
|
|
1033
|
+
countDownloads: string;
|
|
1034
|
+
};
|
|
1012
1035
|
moshi: {
|
|
1013
1036
|
prettyLabel: string;
|
|
1014
1037
|
repoName: string;
|
|
@@ -1084,6 +1107,15 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
1084
1107
|
filter: false;
|
|
1085
1108
|
countDownloads: string;
|
|
1086
1109
|
};
|
|
1110
|
+
opendde: {
|
|
1111
|
+
prettyLabel: string;
|
|
1112
|
+
repoName: string;
|
|
1113
|
+
repoUrl: string;
|
|
1114
|
+
docsUrl: string;
|
|
1115
|
+
snippets: () => string[];
|
|
1116
|
+
filter: false;
|
|
1117
|
+
countDownloads: string;
|
|
1118
|
+
};
|
|
1087
1119
|
openpeerllm: {
|
|
1088
1120
|
prettyLabel: string;
|
|
1089
1121
|
repoName: string;
|
|
@@ -1148,6 +1180,13 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
1148
1180
|
filter: false;
|
|
1149
1181
|
countDownloads: string;
|
|
1150
1182
|
};
|
|
1183
|
+
piper: {
|
|
1184
|
+
prettyLabel: string;
|
|
1185
|
+
repoName: string;
|
|
1186
|
+
repoUrl: string;
|
|
1187
|
+
filter: false;
|
|
1188
|
+
countDownloads: string;
|
|
1189
|
+
};
|
|
1151
1190
|
"pocket-tts": {
|
|
1152
1191
|
prettyLabel: string;
|
|
1153
1192
|
repoName: string;
|
|
@@ -1253,6 +1292,15 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
1253
1292
|
filter: false;
|
|
1254
1293
|
countDownloads: string;
|
|
1255
1294
|
};
|
|
1295
|
+
"routee-powertrain": {
|
|
1296
|
+
prettyLabel: string;
|
|
1297
|
+
repoName: string;
|
|
1298
|
+
repoUrl: string;
|
|
1299
|
+
docsUrl: string;
|
|
1300
|
+
snippets: (model: ModelData) => string[];
|
|
1301
|
+
filter: false;
|
|
1302
|
+
countDownloads: string;
|
|
1303
|
+
};
|
|
1256
1304
|
rwkv: {
|
|
1257
1305
|
prettyLabel: string;
|
|
1258
1306
|
repoName: string;
|
|
@@ -1792,5 +1840,5 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
1792
1840
|
};
|
|
1793
1841
|
export type ModelLibraryKey = keyof typeof MODEL_LIBRARIES_UI_ELEMENTS;
|
|
1794
1842
|
export declare const ALL_MODEL_LIBRARY_KEYS: ModelLibraryKey[];
|
|
1795
|
-
export declare const ALL_DISPLAY_MODEL_LIBRARY_KEYS: ("acestep" | "adapter-transformers" | "allennlp" | "anemoi" | "araclip" | "aviation-ner" | "asteroid" | "audiocraft" | "audioseal" | "bagel-mot" | "bboxmaskpose" | "ben2" | "bertopic" | "big_vision" | "bionemo" | "birder" | "birefnet" | "bm25s" | "boltzgen" | "cancertathomev2" | "cartesia_pytorch" | "cartesia_mlx" | "ccpfn" | "champ" | "chatterbox" | "chaossim" | "chat_tts" | "chexmix" | "chronos-forecasting" | "clara" | "clipscope" | "cloud-agents" | "collectorvision" | "colipri" | "cosyvoice" | "cotracker" | "colpali" | "comet" | "cosmos" | "cxr-foundation" | "deepforest" | "depth-anything-v2" | "depth-pro" | "derm-foundation" | "describe-anything" | "dia-tts" | "dia2" | "diff-interpretation-tuning" | "diffree" | "diffusers" | "diffusionkit" | "docking-at-home" | "doctr" | "edsnlp" | "elm" | "encoderfile" | "espnet" | "eupe" | "fairseq" | "fastai" | "fastprint" | "fasttext" | "fixer" | "flair" | "flextab" | "fme" | "gemma.cpp" | "geometry-crafter" | "gliner" | "gliner2" | "glm-tts" | "glyph-byt5" | "granite-library" | "grok" | "habibi-tts" | "hallo" | "minimax-h3" | "hermes" | "holomotion" | "hezar" | "htrflow" | "hunyuan-dit" | "hunyuan3d-2" | "hunyuanworld-voyager" | "hy-worldplay" | "hy-world-2" | "image-matching-models" | "imstoucan" | "index-tts" | "infinitetalk" | "infinite-you" | "intellifold" | "ising-decoding" | "keras" | "tf-keras" | "keras-hub" | "kerasformers" | "kernels" | "kimi-audio" | "kittentts" | "kronos" | "k2" | "lyra-2.0" | "lagernvs" | "ltx" | "lightning-ir" | "litert" | "litert-lm" | "lerobot" | "lightglue" | "liveportrait" | "longcat-video-avatar-1.5" | "llama-cpp-python" | "mini-omni2" | "mindspore" | "magi-1" | "magenta-realtime" | "magenta-realtime-2" | "mamba-ssm" | "manas-1" | "mars5-tts" | "matanyone" | "mesh-anything" | "merlin" | "medvae" | "mflux" | "mitie" | "ml-agents" | "ml-sharp" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "mobilint" | "moshi" | "mtvcraft" | "multimolecule" | "nemo" | "ninfer" | "nobg" | "nv-medtech" | "open-oasis" | "open_clip" | "openasr" | "openpeerllm" | "open-sora" | "outetts" | "paddlenlp" | "PaddleOCR" | "peft" | "perception-encoder" | "phantom-wan" | "pocket-tts" | "pruna-ai" | "pxia" | "pyannote-audio" | "py-feat" | "pythae" | "quantumpeer" | "qwen3_tts" | "recurrentgemma" | "relik" | "refiners" | "renderformer" | "reverb" | "rkllm" | "robo-orchard-lab" | "rwkv" | "saelens" | "scail-2" | "sam2" | "sam-3d-body" | "sam-3d-objects" | "same" | "sample-factory" | "sap-rpt-1-oss" | "sapiens" | "sapiens2" | "seedvr" | "self-forcing" | "sentence-transformers" | "setfit" | "sklearn" | "spacy" | "span-marker" | "speechbrain" | "ssr-speech" | "stable-audio-3" | "stable-audio-tools" | "monkeyocr" | "diffusion-single-file" | "seed-story" | "skala" | "soloaudio" | "songbloom" | "stable-baselines3" | "stanza" | "supertonic" | "swarmformer" | "synthefy-migas" | "f5-tts" | "genmo" | "tencent-song-generation" | "tensorflowtts" | "tensorrt" | "tabpfn" | "terratorch" | "tic-clip" | "timesfm" | "timee-ts" | "timm" | "tirex" | "tirex-2" | "torchgeo" | "transformers" | "transformers.js" | "trellis" | "trellis2" | "tunejury" | "ultralytics" | "univa" | "uni-3dar" | "unity-sentis" | "sana" | "videoprism" | "vfi-mamba" | "vismatch" | "lvface" | "voicecraft" | "voxcpm" | "vui" | "vibevoice" | "videox_fun" | "wan2.2" | "wham" | "whisperkit" | "yolov10" | "yolov26" | "zonos" | "3dtopia-xl")[];
|
|
1843
|
+
export declare const ALL_DISPLAY_MODEL_LIBRARY_KEYS: ("acestep" | "adapter-transformers" | "allennlp" | "anemoi" | "araclip" | "aviation-ner" | "asteroid" | "audiocraft" | "audioseal" | "bagel-mot" | "bboxmaskpose" | "ben2" | "bertopic" | "big_vision" | "bionemo" | "birder" | "birefnet" | "bm25s" | "boltzgen" | "cancertathomev2" | "cartesia_pytorch" | "cartesia_mlx" | "ccpfn" | "champ" | "chatterbox" | "chaossim" | "chat_tts" | "chexmix" | "chronos-forecasting" | "clara" | "clipscope" | "cloud-agents" | "collectorvision" | "colipri" | "cosyvoice" | "cotracker" | "colpali" | "comet" | "cortiq" | "cosmos" | "cxr-foundation" | "deepforest" | "depth-anything-v2" | "depth-pro" | "derm-foundation" | "describe-anything" | "dia-tts" | "dia2" | "diff-interpretation-tuning" | "diffree" | "diffusers" | "diffusionkit" | "docking-at-home" | "doctr" | "edsnlp" | "elm" | "encoderfile" | "espnet" | "eupe" | "fairseq" | "fastai" | "fastprint" | "fasttext" | "fixer" | "flair" | "flextab" | "fme" | "gemma.cpp" | "geometry-crafter" | "gliner" | "gliner2" | "glm-tts" | "glyph-byt5" | "granite-library" | "grok" | "habibi-tts" | "hallo" | "minimax-h3" | "hermes" | "holomotion" | "hezar" | "htrflow" | "hunyuan-dit" | "hunyuan3d-2" | "hunyuanworld-voyager" | "hy-worldplay" | "hy-world-2" | "image-matching-models" | "imstoucan" | "index-tts" | "infinitetalk" | "infinite-you" | "intellifold" | "ising-decoding" | "keras" | "tf-keras" | "keras-hub" | "kerasformers" | "kernels" | "kimi-audio" | "kittentts" | "kronos" | "k2" | "lyra-2.0" | "lagernvs" | "ltx" | "lightning-ir" | "litert" | "litert-lm" | "lerobot" | "lightglue" | "liveportrait" | "longcat-video-avatar-1.5" | "llama-cpp-python" | "mini-omni2" | "mindspore" | "magi-1" | "magenta-realtime" | "magenta-realtime-2" | "mamba-ssm" | "manas-1" | "mars5-tts" | "matanyone" | "memra" | "mesh-anything" | "merlin" | "medvae" | "mflux" | "mitie" | "ml-agents" | "ml-sharp" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "mobilint" | "montreal-forced-aligner" | "moshi" | "mtvcraft" | "multimolecule" | "nemo" | "ninfer" | "nobg" | "nv-medtech" | "open-oasis" | "open_clip" | "openasr" | "opendde" | "openpeerllm" | "open-sora" | "outetts" | "paddlenlp" | "PaddleOCR" | "peft" | "perception-encoder" | "phantom-wan" | "piper" | "pocket-tts" | "pruna-ai" | "pxia" | "pyannote-audio" | "py-feat" | "pythae" | "quantumpeer" | "qwen3_tts" | "recurrentgemma" | "relik" | "refiners" | "renderformer" | "reverb" | "rkllm" | "robo-orchard-lab" | "routee-powertrain" | "rwkv" | "saelens" | "scail-2" | "sam2" | "sam-3d-body" | "sam-3d-objects" | "same" | "sample-factory" | "sap-rpt-1-oss" | "sapiens" | "sapiens2" | "seedvr" | "self-forcing" | "sentence-transformers" | "setfit" | "sklearn" | "spacy" | "span-marker" | "speechbrain" | "ssr-speech" | "stable-audio-3" | "stable-audio-tools" | "monkeyocr" | "diffusion-single-file" | "seed-story" | "skala" | "soloaudio" | "songbloom" | "stable-baselines3" | "stanza" | "supertonic" | "swarmformer" | "synthefy-migas" | "f5-tts" | "genmo" | "tencent-song-generation" | "tensorflowtts" | "tensorrt" | "tabpfn" | "terratorch" | "tic-clip" | "timesfm" | "timee-ts" | "timm" | "tirex" | "tirex-2" | "torchgeo" | "transformers" | "transformers.js" | "trellis" | "trellis2" | "tunejury" | "ultralytics" | "univa" | "uni-3dar" | "unity-sentis" | "sana" | "videoprism" | "vfi-mamba" | "vismatch" | "lvface" | "voicecraft" | "voxcpm" | "vui" | "vibevoice" | "videox_fun" | "wan2.2" | "wham" | "whisperkit" | "yolov10" | "yolov26" | "zonos" | "3dtopia-xl")[];
|
|
1796
1844
|
//# 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
|
+
{"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,CA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,EAA+C,eAAe,EAAE,CAAC;AAEpG,eAAO,MAAM,8BAA8B,k6GAQ1B,CAAC"}
|
|
@@ -290,6 +290,14 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
290
290
|
repoUrl: "https://github.com/Unbabel/COMET/",
|
|
291
291
|
countDownloads: `path:"hparams.yaml"`,
|
|
292
292
|
},
|
|
293
|
+
cortiq: {
|
|
294
|
+
prettyLabel: "cortiq",
|
|
295
|
+
repoName: "cortiq",
|
|
296
|
+
repoUrl: "https://github.com/infosave2007/cmf",
|
|
297
|
+
docsUrl: "https://github.com/infosave2007/cmf/blob/master/docs/CMF_V2_SPEC.md",
|
|
298
|
+
snippets: snippets.cortiq,
|
|
299
|
+
countDownloads: `path_extension:"cmf"`,
|
|
300
|
+
},
|
|
293
301
|
cosmos: {
|
|
294
302
|
prettyLabel: "Cosmos",
|
|
295
303
|
repoName: "Cosmos",
|
|
@@ -880,6 +888,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
880
888
|
snippets: snippets.matanyone,
|
|
881
889
|
filter: false,
|
|
882
890
|
},
|
|
891
|
+
memra: {
|
|
892
|
+
prettyLabel: "memra",
|
|
893
|
+
repoName: "memra",
|
|
894
|
+
repoUrl: "https://github.com/avifenesh/memra",
|
|
895
|
+
snippets: snippets.memra,
|
|
896
|
+
filter: false,
|
|
897
|
+
},
|
|
883
898
|
"mesh-anything": {
|
|
884
899
|
prettyLabel: "MeshAnything",
|
|
885
900
|
repoName: "MeshAnything",
|
|
@@ -971,6 +986,14 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
971
986
|
snippets: snippets.mobilint,
|
|
972
987
|
filter: false,
|
|
973
988
|
},
|
|
989
|
+
"montreal-forced-aligner": {
|
|
990
|
+
prettyLabel: "Montreal Forced Aligner",
|
|
991
|
+
repoName: "Montreal Forced Aligner",
|
|
992
|
+
repoUrl: "https://github.com/MontrealCorpusTools/Montreal-Forced-Aligner",
|
|
993
|
+
docsUrl: "https://montreal-forced-aligner.readthedocs.io",
|
|
994
|
+
filter: false,
|
|
995
|
+
countDownloads: `path:"acoustic/final.mdl" OR path_extension:"zip"`,
|
|
996
|
+
},
|
|
974
997
|
moshi: {
|
|
975
998
|
prettyLabel: "Moshi",
|
|
976
999
|
repoName: "Moshi",
|
|
@@ -1049,6 +1072,15 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
1049
1072
|
filter: false,
|
|
1050
1073
|
countDownloads: `path_extension:"oasr"`,
|
|
1051
1074
|
},
|
|
1075
|
+
opendde: {
|
|
1076
|
+
prettyLabel: "OpenDDE",
|
|
1077
|
+
repoName: "OpenDDE",
|
|
1078
|
+
repoUrl: "https://github.com/aurekaresearch/OpenDDE",
|
|
1079
|
+
docsUrl: "https://huggingface.co/aurekaresearch/OpenDDE/blob/main/docs/inference_instructions.md",
|
|
1080
|
+
snippets: snippets.opendde,
|
|
1081
|
+
filter: false,
|
|
1082
|
+
countDownloads: `path_extension:"pt"`,
|
|
1083
|
+
},
|
|
1052
1084
|
openpeerllm: {
|
|
1053
1085
|
prettyLabel: "OpenPeerLLM",
|
|
1054
1086
|
repoName: "OpenPeerLLM",
|
|
@@ -1113,6 +1145,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
1113
1145
|
filter: false,
|
|
1114
1146
|
countDownloads: `path_extension:"pth"`,
|
|
1115
1147
|
},
|
|
1148
|
+
piper: {
|
|
1149
|
+
prettyLabel: "Piper",
|
|
1150
|
+
repoName: "Piper",
|
|
1151
|
+
repoUrl: "https://github.com/OHF-Voice/piper1-gpl",
|
|
1152
|
+
filter: false,
|
|
1153
|
+
countDownloads: `path_extension:"onnx" OR path_extension:"ckpt"`,
|
|
1154
|
+
},
|
|
1116
1155
|
"pocket-tts": {
|
|
1117
1156
|
prettyLabel: "Pocket-TTS",
|
|
1118
1157
|
repoName: "PocketTTS",
|
|
@@ -1218,6 +1257,15 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
1218
1257
|
filter: false,
|
|
1219
1258
|
countDownloads: `path_extension:"safetensors"`,
|
|
1220
1259
|
},
|
|
1260
|
+
"routee-powertrain": {
|
|
1261
|
+
prettyLabel: "RouteE-Powertrain",
|
|
1262
|
+
repoName: "RouteE-Powertrain",
|
|
1263
|
+
repoUrl: "https://github.com/NatLabRockies/routee-powertrain",
|
|
1264
|
+
docsUrl: "https://natlabrockies.github.io/routee-powertrain/",
|
|
1265
|
+
snippets: snippets.routee_powertrain,
|
|
1266
|
+
filter: false,
|
|
1267
|
+
countDownloads: `path_extension:"onnx" OR path_extension:"joblib"`,
|
|
1268
|
+
},
|
|
1221
1269
|
rwkv: {
|
|
1222
1270
|
prettyLabel: "RWKV",
|
|
1223
1271
|
repoName: "RWKV-LM",
|
package/package.json
CHANGED
package/src/local-apps.spec.ts
CHANGED
|
@@ -301,7 +301,7 @@ curl -X POST "http://localhost:8000/v1/chat/completions" \\
|
|
|
301
301
|
});
|
|
302
302
|
|
|
303
303
|
it("unsloth tagged model", async () => {
|
|
304
|
-
const { displayOnModelPage,
|
|
304
|
+
const { displayOnModelPage, deeplink } = LOCAL_APPS.unsloth;
|
|
305
305
|
const model: ModelData = {
|
|
306
306
|
id: "some-user/my-unsloth-finetune",
|
|
307
307
|
tags: ["unsloth", "conversational"],
|
|
@@ -309,25 +309,11 @@ curl -X POST "http://localhost:8000/v1/chat/completions" \\
|
|
|
309
309
|
};
|
|
310
310
|
|
|
311
311
|
expect(displayOnModelPage(model)).toBe(true);
|
|
312
|
-
|
|
313
|
-
expect(snippet[0].setup).toBe("curl -fsSL https://unsloth.ai/install.sh | sh");
|
|
314
|
-
expect(snippet[0].content).toBe(
|
|
315
|
-
"# Run unsloth studio\nunsloth studio -H 0.0.0.0 -p 8888\n# Then open http://localhost:8888 in your browser\n# Search for some-user/my-unsloth-finetune to start chatting",
|
|
316
|
-
);
|
|
317
|
-
expect(snippet[1].setup).toBe("irm https://unsloth.ai/install.ps1 | iex");
|
|
318
|
-
expect(snippet[1].content).toBe(snippet[0].content);
|
|
319
|
-
expect(snippet[2].setup).toBe("# No setup required");
|
|
320
|
-
expect(snippet[2].content).toBe(
|
|
321
|
-
"# Open https://huggingface.co/spaces/unsloth/studio in your browser\n# Search for some-user/my-unsloth-finetune to start chatting",
|
|
322
|
-
);
|
|
323
|
-
expect(snippet[3].setup).toBe("pip install unsloth");
|
|
324
|
-
expect(snippet[3].content).toBe(
|
|
325
|
-
'from unsloth import FastModel\nmodel, tokenizer = FastModel.from_pretrained(\n model_name="some-user/my-unsloth-finetune",\n max_seq_length=2048,\n)',
|
|
326
|
-
);
|
|
312
|
+
expect(deeplink(model, undefined).href).toBe("unsloth://open_from_hf?model=some-user%2Fmy-unsloth-finetune");
|
|
327
313
|
});
|
|
328
314
|
|
|
329
315
|
it("unsloth namespace gguf model", async () => {
|
|
330
|
-
const { displayOnModelPage,
|
|
316
|
+
const { displayOnModelPage, deeplink } = LOCAL_APPS.unsloth;
|
|
331
317
|
const model: ModelData = {
|
|
332
318
|
id: "unsloth/Llama-3.2-3B-Instruct-GGUF",
|
|
333
319
|
tags: ["conversational"],
|
|
@@ -336,18 +322,10 @@ curl -X POST "http://localhost:8000/v1/chat/completions" \\
|
|
|
336
322
|
};
|
|
337
323
|
|
|
338
324
|
expect(displayOnModelPage(model)).toBe(true);
|
|
339
|
-
|
|
340
|
-
expect(
|
|
341
|
-
|
|
342
|
-
"# Run unsloth studio\nunsloth studio -H 0.0.0.0 -p 8888\n# Then open http://localhost:8888 in your browser\n# Search for unsloth/Llama-3.2-3B-Instruct-GGUF to start chatting",
|
|
343
|
-
);
|
|
344
|
-
expect(snippet[1].setup).toBe("irm https://unsloth.ai/install.ps1 | iex");
|
|
345
|
-
expect(snippet[1].content).toBe(snippet[0].content);
|
|
346
|
-
expect(snippet[2].setup).toBe("# No setup required");
|
|
347
|
-
expect(snippet[2].content).toBe(
|
|
348
|
-
"# Open https://huggingface.co/spaces/unsloth/studio in your browser\n# Search for unsloth/Llama-3.2-3B-Instruct-GGUF to start chatting",
|
|
325
|
+
expect(deeplink(model, undefined).href).toBe("unsloth://open_from_hf?model=unsloth%2FLlama-3.2-3B-Instruct-GGUF");
|
|
326
|
+
expect(deeplink(model, "Llama-3.2-3B-Instruct-UD-Q4_K_XL.gguf").href).toBe(
|
|
327
|
+
"unsloth://open_from_hf?model=unsloth%2FLlama-3.2-3B-Instruct-GGUF&file=Llama-3.2-3B-Instruct-UD-Q4_K_XL.gguf",
|
|
349
328
|
);
|
|
350
|
-
expect(snippet).toHaveLength(3); // GGUF models only get 3 snippets
|
|
351
329
|
});
|
|
352
330
|
|
|
353
331
|
it("non unsloth namespace gguf model", async () => {
|
package/src/local-apps.ts
CHANGED
|
@@ -225,56 +225,6 @@ const snippetOllama = (model: ModelData, filepath?: string): string => {
|
|
|
225
225
|
return `ollama run hf.co/${model.id}${getQuantTag(filepath)}`;
|
|
226
226
|
};
|
|
227
227
|
|
|
228
|
-
const snippetUnsloth = (model: ModelData): LocalAppSnippet[] => {
|
|
229
|
-
const isGguf = isLlamaCppGgufModel(model);
|
|
230
|
-
|
|
231
|
-
const studio_content = [
|
|
232
|
-
"# Run unsloth studio",
|
|
233
|
-
"unsloth studio -H 0.0.0.0 -p 8888",
|
|
234
|
-
"# Then open http://localhost:8888 in your browser",
|
|
235
|
-
"# Search for " + model.id + " to start chatting",
|
|
236
|
-
].join("\n");
|
|
237
|
-
|
|
238
|
-
const studio_instructions: LocalAppSnippet = {
|
|
239
|
-
title: "Install Unsloth Studio (macOS, Linux, WSL)",
|
|
240
|
-
setup: "curl -fsSL https://unsloth.ai/install.sh | sh",
|
|
241
|
-
content: studio_content,
|
|
242
|
-
};
|
|
243
|
-
|
|
244
|
-
const studio_instructions_windows: LocalAppSnippet = {
|
|
245
|
-
title: "Install Unsloth Studio (Windows)",
|
|
246
|
-
setup: "irm https://unsloth.ai/install.ps1 | iex",
|
|
247
|
-
content: studio_content,
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
const hf_spaces_instructions: LocalAppSnippet = {
|
|
251
|
-
title: "Using HuggingFace Spaces for Unsloth",
|
|
252
|
-
setup: "# No setup required",
|
|
253
|
-
content:
|
|
254
|
-
"# Open https://huggingface.co/spaces/unsloth/studio in your browser\n# Search for " +
|
|
255
|
-
model.id +
|
|
256
|
-
" to start chatting",
|
|
257
|
-
};
|
|
258
|
-
|
|
259
|
-
const fastmodel_instructions: LocalAppSnippet = {
|
|
260
|
-
title: "Load model with FastModel",
|
|
261
|
-
setup: "pip install unsloth",
|
|
262
|
-
content: [
|
|
263
|
-
"from unsloth import FastModel",
|
|
264
|
-
"model, tokenizer = FastModel.from_pretrained(",
|
|
265
|
-
' model_name="' + model.id + '",',
|
|
266
|
-
" max_seq_length=2048,",
|
|
267
|
-
")",
|
|
268
|
-
].join("\n"),
|
|
269
|
-
};
|
|
270
|
-
|
|
271
|
-
if (isGguf) {
|
|
272
|
-
return [studio_instructions, studio_instructions_windows, hf_spaces_instructions];
|
|
273
|
-
} else {
|
|
274
|
-
return [studio_instructions, studio_instructions_windows, hf_spaces_instructions, fastmodel_instructions];
|
|
275
|
-
}
|
|
276
|
-
};
|
|
277
|
-
|
|
278
228
|
const snippetLocalAI = (model: ModelData, filepath?: string): LocalAppSnippet[] => {
|
|
279
229
|
const command = (binary: string) =>
|
|
280
230
|
["# Load and run the model:", `${binary} huggingface://${model.id}/${filepath ?? "{{GGUF_FILE}}"}`].join("\n");
|
|
@@ -798,11 +748,18 @@ export const LOCAL_APPS = {
|
|
|
798
748
|
snippet: snippetOllama,
|
|
799
749
|
},
|
|
800
750
|
unsloth: {
|
|
801
|
-
prettyLabel: "Unsloth
|
|
802
|
-
docsUrl: "https://unsloth.ai/docs
|
|
751
|
+
prettyLabel: "Unsloth Desktop",
|
|
752
|
+
docsUrl: "https://unsloth.ai/docs",
|
|
803
753
|
mainTask: "text-generation",
|
|
804
754
|
displayOnModelPage: isUnslothModel,
|
|
805
|
-
|
|
755
|
+
deeplink: (model, filepath) => {
|
|
756
|
+
const url = new URL("unsloth://open_from_hf");
|
|
757
|
+
url.searchParams.set("model", model.id);
|
|
758
|
+
if (filepath) {
|
|
759
|
+
url.searchParams.set("file", filepath);
|
|
760
|
+
}
|
|
761
|
+
return url;
|
|
762
|
+
},
|
|
806
763
|
},
|
|
807
764
|
"docker-model-runner": {
|
|
808
765
|
prettyLabel: "Docker Model Runner",
|