@huggingface/tasks 0.22.4 → 0.22.6
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/model-libraries-snippets.d.ts +10 -0
- package/dist/commonjs/model-libraries-snippets.d.ts.map +1 -1
- package/dist/commonjs/model-libraries-snippets.js +230 -3
- package/dist/commonjs/model-libraries.d.ts +175 -2
- package/dist/commonjs/model-libraries.d.ts.map +1 -1
- package/dist/commonjs/model-libraries.js +174 -1
- package/dist/esm/model-libraries-snippets.d.ts +10 -0
- package/dist/esm/model-libraries-snippets.d.ts.map +1 -1
- package/dist/esm/model-libraries-snippets.js +217 -0
- package/dist/esm/model-libraries.d.ts +175 -2
- package/dist/esm/model-libraries.d.ts.map +1 -1
- package/dist/esm/model-libraries.js +174 -1
- package/package.json +1 -1
- package/src/model-libraries-snippets.ts +232 -0
- package/src/model-libraries.ts +174 -1
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import type { ModelData } from "./model-data.js";
|
|
2
2
|
export declare const aadyaNeural: (model: ModelData) => string[];
|
|
3
|
+
export declare const minicpmOcr: (model: ModelData) => string[];
|
|
3
4
|
export declare const adapters: (model: ModelData) => string[];
|
|
5
|
+
export declare const alkove: (model: ModelData) => string[];
|
|
4
6
|
export declare const allennlp: (model: ModelData) => string[];
|
|
5
7
|
export declare const araclip: (model: ModelData) => string[];
|
|
6
8
|
export declare const asimov: (model: ModelData) => string[];
|
|
7
9
|
export declare const asteroid: (model: ModelData) => string[];
|
|
8
10
|
export declare const audioseal: (model: ModelData) => string[];
|
|
11
|
+
export declare const basedecision: (model: ModelData) => string[];
|
|
9
12
|
export declare const ben2: (model: ModelData) => string[];
|
|
10
13
|
export declare const bertopic: (model: ModelData) => string[];
|
|
11
14
|
export declare const bm25s: (model: ModelData) => string[];
|
|
@@ -23,6 +26,7 @@ export declare const derm_foundation: () => string[];
|
|
|
23
26
|
export declare const dia: (model: ModelData) => string[];
|
|
24
27
|
export declare const dia2: (model: ModelData) => string[];
|
|
25
28
|
export declare const describe_anything: (model: ModelData) => string[];
|
|
29
|
+
export declare const dew: (model: ModelData) => string[];
|
|
26
30
|
export declare const diffusers: (model: ModelData) => string[];
|
|
27
31
|
export declare const diffusionkit: (model: ModelData) => string[];
|
|
28
32
|
export declare const cartesia_pytorch: (model: ModelData) => string[];
|
|
@@ -35,6 +39,7 @@ export declare const fairseq: (model: ModelData) => string[];
|
|
|
35
39
|
export declare const flair: (model: ModelData) => string[];
|
|
36
40
|
export declare const flexray: (model: ModelData) => string[];
|
|
37
41
|
export declare const flextab: () => string[];
|
|
42
|
+
export declare const fse: (model: ModelData) => string[];
|
|
38
43
|
export declare const gaussianformer: (model: ModelData) => string[];
|
|
39
44
|
export declare const gliner: (model: ModelData) => string[];
|
|
40
45
|
export declare const gliner2: (model: ModelData) => string[];
|
|
@@ -47,8 +52,10 @@ export declare const keras_hub: (model: ModelData) => string[];
|
|
|
47
52
|
export declare const kernels: (model: ModelData) => string[];
|
|
48
53
|
export declare const kimi_audio: (model: ModelData) => string[];
|
|
49
54
|
export declare const kittentts: (model: ModelData) => string[];
|
|
55
|
+
export declare const konfai: (model: ModelData) => string[];
|
|
50
56
|
export declare const ltx: (model: ModelData) => string[];
|
|
51
57
|
export declare const lightning_ir: (model: ModelData) => string[];
|
|
58
|
+
export declare const linnet_tts: (model: ModelData) => string[];
|
|
52
59
|
export declare const llama_cpp_python: (model: ModelData) => string[];
|
|
53
60
|
export declare const lerobot: (model: ModelData) => string[];
|
|
54
61
|
export declare const litert_lm: (model: ModelData) => string[];
|
|
@@ -63,6 +70,7 @@ export declare const multimolecule: (model: ModelData) => string[];
|
|
|
63
70
|
export declare const open_clip: (model: ModelData) => string[];
|
|
64
71
|
export declare const openasr: (model: ModelData) => string[];
|
|
65
72
|
export declare const opendde: () => string[];
|
|
73
|
+
export declare const opendecision: (model: ModelData) => string[];
|
|
66
74
|
export declare const paddlenlp: (model: ModelData) => string[];
|
|
67
75
|
export declare const paddleocr: (model: ModelData) => string[];
|
|
68
76
|
export declare const perception_encoder: (model: ModelData) => string[];
|
|
@@ -76,6 +84,7 @@ export declare const renderformer: (model: ModelData) => string[];
|
|
|
76
84
|
export declare const routee_powertrain: (model: ModelData) => string[];
|
|
77
85
|
export declare const tensorflowtts: (model: ModelData) => string[];
|
|
78
86
|
export declare const timm: (model: ModelData) => string[];
|
|
87
|
+
export declare const torch_pointcloud: (model: ModelData) => string[];
|
|
79
88
|
export declare const saelens: () => string[];
|
|
80
89
|
export declare const seed_story: () => string[];
|
|
81
90
|
export declare const sklearn: (model: ModelData) => string[];
|
|
@@ -114,6 +123,7 @@ export declare const birefnet: (model: ModelData) => string[];
|
|
|
114
123
|
export declare const nobg: (model: ModelData) => string[];
|
|
115
124
|
export declare const supertonic: () => string[];
|
|
116
125
|
export declare const swarmformer: (model: ModelData) => string[];
|
|
126
|
+
export declare const unitree: (model: ModelData) => string[];
|
|
117
127
|
export declare const univa: (model: ModelData) => string[];
|
|
118
128
|
export declare const mlxim: (model: ModelData) => string[];
|
|
119
129
|
export declare const mlx: (model: ModelData) => 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,EAAoB,MAAM,iBAAiB,CAAC;AAoBnE,eAAO,MAAM,WAAW,GAAI,OAAO,SAAS,KAAG,MAAM,EAQpD,CAAC;AAEF,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,MAAM,GAAI,OAAO,SAAS,KAAG,MAAM,EAM/C,CAAC;AAEF,eAAO,MAAM,QAAQ,G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I,GAAI,OAAO,SAAS,KAAG,MAAM,EAQ7C,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,OAAO,SAAS,KAAG,MAAM,EAuBhD,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"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.moshi = exports.zonos = exports.hezar = exports.threedtopia_xl = exports.whisperkit = exports.audiocraft = exports.anemoi = exports.qwen3_tts = exports.pythae = exports.pxia = exports.outetts = exports.nemo = exports.pruna = exports.mobilint = exports.model2vec = exports.mlx = exports.mlxim = exports.univa = exports.swarmformer = exports.supertonic = exports.nobg = exports.birefnet = exports.ultralytics = exports.chattts = exports.vui = exports.voxcpm = exports.voicecraft = exports.lvface = exports.vfimamba = exports.videoprism = exports.vibevoice = exports.sana = exports.sentis = void 0;
|
|
3
|
+
exports.keras_hub = exports.zeromodels = exports.keras = exports.jev_style = exports.htrflow = exports.indextts = exports.gliner2 = exports.gliner = exports.gaussianformer = exports.fse = exports.flextab = exports.flexray = exports.flair = exports.fairseq = exports.espnet = exports.espnetASR = exports.espnetTTS = exports.edsnlp = exports.cartesia_mlx = exports.cartesia_pytorch = exports.diffusionkit = exports.diffusers = exports.dew = exports.describe_anything = exports.dia2 = exports.dia = exports.derm_foundation = exports.depth_pro = exports.depth_anything_v2 = exports.cxr_foundation = exports.cortiq = exports.sap_rpt_one_oss = exports.colipri = exports.collectorvision = exports.chronos_forecasting = exports.chatterbox = exports.case_model = exports.bm25s = exports.bertopic = exports.ben2 = exports.basedecision = exports.audioseal = exports.asteroid = exports.asimov = exports.araclip = exports.allennlp = exports.alkove = exports.adapters = exports.minicpmOcr = exports.aadyaNeural = void 0;
|
|
4
|
+
exports.span_marker = exports.spacy = exports.setfit = exports.sentenceTransformers = exports.aneforge = exports.sampleFactory = exports.sam_3d_body = exports.sam_3d_objects = exports.sam2 = exports.fastai = exports.stable_audio_tools = exports.sklearn = exports.seed_story = exports.saelens = exports.torch_pointcloud = exports.timm = exports.tensorflowtts = exports.routee_powertrain = exports.renderformer = exports.relik = exports.pyannote_audio = exports.pyannote_audio_pipeline = exports.pocket_tts = exports.pika_h3_flex = exports.phantom_wan = exports.perception_encoder = exports.paddleocr = exports.paddlenlp = exports.opendecision = exports.opendde = exports.openasr = exports.open_clip = exports.multimolecule = exports.microduck = exports.mesh_anything = exports.memra = exports.matanyone = exports.mars5_tts = exports.mamba_ssm = exports.tf_keras = exports.litert_lm = exports.lerobot = exports.llama_cpp_python = exports.linnet_tts = exports.lightning_ir = exports.ltx = exports.konfai = exports.kittentts = exports.kimi_audio = exports.kernels = void 0;
|
|
5
|
+
exports.moshi = exports.zonos = exports.hezar = exports.threedtopia_xl = exports.whisperkit = exports.audiocraft = exports.anemoi = exports.qwen3_tts = exports.pythae = exports.pxia = exports.outetts = exports.nemo = exports.pruna = exports.mobilint = exports.model2vec = exports.mlx = exports.mlxim = exports.univa = exports.unitree = exports.swarmformer = exports.supertonic = exports.nobg = exports.birefnet = exports.ultralytics = exports.chattts = exports.vui = exports.voxcpm = exports.voicecraft = exports.lvface = exports.vfimamba = exports.videoprism = exports.vibevoice = exports.sana = exports.sentis = exports.mlAgents = exports.stableBaselines3 = exports.fasttext = exports.peft = exports.transformersJS = exports.transformers = exports.terratorch = exports.speechbrain = exports.stanza = void 0;
|
|
6
6
|
const library_to_tasks_js_1 = require("./library-to-tasks.js");
|
|
7
7
|
const inputs_js_1 = require("./snippets/inputs.js");
|
|
8
8
|
const common_js_1 = require("./snippets/common.js");
|
|
@@ -24,6 +24,51 @@ model = AadyaM1Forecaster(weights)
|
|
|
24
24
|
pmf = model.forecast([28, 30, 27], elapsed=0)`,
|
|
25
25
|
];
|
|
26
26
|
exports.aadyaNeural = aadyaNeural;
|
|
27
|
+
const minicpmOcr = (model) => {
|
|
28
|
+
const isGguf = !!model.gguf?.context_length;
|
|
29
|
+
const backend = isGguf ? "llamacpp" : "vllm";
|
|
30
|
+
const device = isGguf ? "cpu" : "cuda:0";
|
|
31
|
+
const contextLength = isGguf ? 8192 : 40960;
|
|
32
|
+
const guide = isGguf ? "llamacpp_deploy.md" : "vllm_deploy_en.md";
|
|
33
|
+
const serviceSettings = isGguf
|
|
34
|
+
? "# llama.cpp: load the model and vision projector; use --port 8080,\n# --alias minicpm-ocr, --ctx-size 8192, --parallel 1, --jinja --reasoning off."
|
|
35
|
+
: "# vLLM: load the model above; use --port 8080,\n# --served-model-name minicpm-ocr and --max-model-len 40960.";
|
|
36
|
+
const pipeline = isGguf
|
|
37
|
+
? '{"queue_mode": "serial", "max_workers": 1, "render_workers": 1}'
|
|
38
|
+
: '{"overlap_layout": True, "render_workers": 1}';
|
|
39
|
+
return [
|
|
40
|
+
`pip install "minicpm-ocr[all]" huggingface_hub
|
|
41
|
+
|
|
42
|
+
# Deploy ${model.id} as a recognition service before running the Python example:
|
|
43
|
+
# https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/${guide}
|
|
44
|
+
${serviceSettings}
|
|
45
|
+
# Layout detection uses ${device}; recognition runs on the deployed service.`,
|
|
46
|
+
`from importlib.resources import files
|
|
47
|
+
from pathlib import Path
|
|
48
|
+
|
|
49
|
+
from minicpmvocr import load_config, pipelined_run
|
|
50
|
+
from huggingface_hub import snapshot_download
|
|
51
|
+
|
|
52
|
+
layout_model = snapshot_download("PaddlePaddle/PP-DocLayoutV3")
|
|
53
|
+
cfg = load_config(
|
|
54
|
+
str(files("minicpmvocr").joinpath("configs/minicpmvocr.yaml")),
|
|
55
|
+
overrides={
|
|
56
|
+
"input": {"file_path": str(Path("demo.png").resolve())},
|
|
57
|
+
"engine": {
|
|
58
|
+
"type": "${backend}",
|
|
59
|
+
"server_url": "http://127.0.0.1:8080",
|
|
60
|
+
"model_name": "minicpm-ocr",
|
|
61
|
+
"max_model_len": ${contextLength},
|
|
62
|
+
},
|
|
63
|
+
"layout": {"model_dir": layout_model, "device": "${device}"},
|
|
64
|
+
# Render PDFs in-process so this example also works without a main guard.
|
|
65
|
+
"pipeline": ${pipeline},
|
|
66
|
+
},
|
|
67
|
+
)
|
|
68
|
+
pipelined_run(cfg)`,
|
|
69
|
+
];
|
|
70
|
+
};
|
|
71
|
+
exports.minicpmOcr = minicpmOcr;
|
|
27
72
|
const adapters = (model) => [
|
|
28
73
|
`from adapters import AutoAdapterModel
|
|
29
74
|
|
|
@@ -31,6 +76,16 @@ model = AutoAdapterModel.from_pretrained("${escapeStringForJson(model.config?.ad
|
|
|
31
76
|
model.load_adapter("${model.id}", set_active=True)`,
|
|
32
77
|
];
|
|
33
78
|
exports.adapters = adapters;
|
|
79
|
+
const alkove = (model) => {
|
|
80
|
+
const name = /^alkove-([a-z]+)-/.exec(model.id.split("/").pop() ?? "")?.[1] ?? "focus";
|
|
81
|
+
return [
|
|
82
|
+
`# pip install alkove
|
|
83
|
+
import alkove
|
|
84
|
+
|
|
85
|
+
models = alkove.Models.load(["${name}"])`,
|
|
86
|
+
];
|
|
87
|
+
};
|
|
88
|
+
exports.alkove = alkove;
|
|
34
89
|
const allennlpUnknown = (model) => [
|
|
35
90
|
`import allennlp_models
|
|
36
91
|
from allennlp.predictors.predictor import Predictor
|
|
@@ -106,6 +161,18 @@ function get_prompt_from_diffusers_model(model) {
|
|
|
106
161
|
return escapeStringForJson(prompt);
|
|
107
162
|
}
|
|
108
163
|
}
|
|
164
|
+
const basedecision = (model) => [
|
|
165
|
+
`from basedecision import load_from_hub
|
|
166
|
+
|
|
167
|
+
model = load_from_hub("${model.id}")
|
|
168
|
+
result = model.choose(
|
|
169
|
+
context="Please refund my purchase.",
|
|
170
|
+
question="What does the customer request?",
|
|
171
|
+
options=["Refund", "Delivery status", "Change address"],
|
|
172
|
+
)
|
|
173
|
+
print(result.answer)`,
|
|
174
|
+
];
|
|
175
|
+
exports.basedecision = basedecision;
|
|
109
176
|
const ben2 = (model) => [
|
|
110
177
|
`import requests
|
|
111
178
|
from PIL import Image
|
|
@@ -441,6 +508,24 @@ dam = DescribeAnythingModel(
|
|
|
441
508
|
)`,
|
|
442
509
|
];
|
|
443
510
|
exports.describe_anything = describe_anything;
|
|
511
|
+
const dew = (model) => {
|
|
512
|
+
if (model.pipeline_tag === "text-to-image") {
|
|
513
|
+
return [
|
|
514
|
+
`# pip install dewml --extra-index-url https://pypi.dewml.dev/simple
|
|
515
|
+
import dew
|
|
516
|
+
|
|
517
|
+
pipe = dew.pipeline("${model.id}")
|
|
518
|
+
images = pipe(["a red fox in a snowy forest"], steps=20, key=0).host().images`,
|
|
519
|
+
];
|
|
520
|
+
}
|
|
521
|
+
return [
|
|
522
|
+
`# pip install dewml --extra-index-url https://pypi.dewml.dev/simple
|
|
523
|
+
import dew
|
|
524
|
+
|
|
525
|
+
task = dew.pipeline("${model.id}")`,
|
|
526
|
+
];
|
|
527
|
+
};
|
|
528
|
+
exports.dew = dew;
|
|
444
529
|
const diffusers_install = "pip install -U diffusers transformers accelerate";
|
|
445
530
|
const diffusersDefaultPrompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k";
|
|
446
531
|
const diffusersImg2ImgDefaultPrompt = "Turn this cat into a dog";
|
|
@@ -870,6 +955,28 @@ print(f'Accuracy {accuracy_score(y_test, predictions):.2%}')
|
|
|
870
955
|
return [installSnippet, classificationSnippet, regressionsSnippet, matchingSnippet];
|
|
871
956
|
};
|
|
872
957
|
exports.flextab = flextab;
|
|
958
|
+
const fse = (model) => {
|
|
959
|
+
if (model.config?.model_type === "fse") {
|
|
960
|
+
return [
|
|
961
|
+
`pip install "fse>=2.0"`,
|
|
962
|
+
`from fse import Encoder
|
|
963
|
+
|
|
964
|
+
encoder = Encoder.from_pretrained("${model.id}")
|
|
965
|
+
vectors = encoder.encode(["A sentence.", "Another sentence."])`,
|
|
966
|
+
];
|
|
967
|
+
}
|
|
968
|
+
return [
|
|
969
|
+
`pip install "fse<2"`,
|
|
970
|
+
`from fse import SIF, IndexedList, Vectors
|
|
971
|
+
|
|
972
|
+
vectors = Vectors.from_pretrained("${nameWithoutNamespace(model.id)}")
|
|
973
|
+
model = SIF(vectors)
|
|
974
|
+
sentences = IndexedList([["hello", "world"], ["fast", "sentence", "embeddings"]])
|
|
975
|
+
model.train(sentences)
|
|
976
|
+
vector = model.sv[0]`,
|
|
977
|
+
];
|
|
978
|
+
};
|
|
979
|
+
exports.fse = fse;
|
|
873
980
|
const gaussianformer = (model) => [
|
|
874
981
|
`# pip install "gaussianformer @ git+https://github.com/SVLwoof/gaussianformer"
|
|
875
982
|
from gaussianformer import GaussianFormerRenderingPipeline, load_ply
|
|
@@ -1134,6 +1241,15 @@ import soundfile as sf
|
|
|
1134
1241
|
sf.write('output.wav', audio, 24000)`,
|
|
1135
1242
|
];
|
|
1136
1243
|
exports.kittentts = kittentts;
|
|
1244
|
+
const konfai = (model) => [
|
|
1245
|
+
`pip install "konfai[imaging]" konfai-apps`,
|
|
1246
|
+
`# List the apps this repository holds
|
|
1247
|
+
konfai-apps list ${model.id}
|
|
1248
|
+
|
|
1249
|
+
# Run one of them on an image
|
|
1250
|
+
konfai-apps infer ${model.id}:<app> -i image.nii.gz -o Output`,
|
|
1251
|
+
];
|
|
1252
|
+
exports.konfai = konfai;
|
|
1137
1253
|
/**
|
|
1138
1254
|
* Detect LTX-2.5 (split weights + Gemma 4 TE file) vs LTX-2.3
|
|
1139
1255
|
* (monolith checkpoint + separate Gemma 3 root). Prefer explicit tags / ids /
|
|
@@ -1383,6 +1499,27 @@ model.score("query", ["doc1", "doc2", "doc3"])`,
|
|
|
1383
1499
|
];
|
|
1384
1500
|
};
|
|
1385
1501
|
exports.lightning_ir = lightning_ir;
|
|
1502
|
+
const linnet_tts = (model) => [
|
|
1503
|
+
`# pip install linnet-tts soundfile
|
|
1504
|
+
import linnet_tts, soundfile as sf
|
|
1505
|
+
from huggingface_hub import hf_hub_download
|
|
1506
|
+
|
|
1507
|
+
model = linnet_tts.Model(
|
|
1508
|
+
hf_hub_download("${model.id}", "linnet-en-35m.fp16.safetensors"),
|
|
1509
|
+
hf_hub_download("${model.id}", "tokenizer.model"),
|
|
1510
|
+
)
|
|
1511
|
+
voice = model.load_voice(hf_hub_download("${model.id}", "voices/linnet-en-f1.npy"))
|
|
1512
|
+
|
|
1513
|
+
audio = model.synthesize("Hello there.", voice, temp=0.3, cfg=2.0, seed=0)
|
|
1514
|
+
sf.write("hello.wav", audio, model.sample_rate) # float32, 24 kHz
|
|
1515
|
+
|
|
1516
|
+
# streaming: one chunk per 80 ms step
|
|
1517
|
+
session = model.session(voice, seed=0)
|
|
1518
|
+
session.prime("Streaming gives the first chunk of audio after one step.")
|
|
1519
|
+
for chunk in session:
|
|
1520
|
+
...`,
|
|
1521
|
+
];
|
|
1522
|
+
exports.linnet_tts = linnet_tts;
|
|
1386
1523
|
const llama_cpp_python = (model) => {
|
|
1387
1524
|
const snippets = [
|
|
1388
1525
|
`# !pip install llama-cpp-python
|
|
@@ -1602,6 +1739,22 @@ opendde doctor
|
|
|
1602
1739
|
opendde pred -i examples/input.json -o ./output -n opendde_v1`,
|
|
1603
1740
|
];
|
|
1604
1741
|
exports.opendde = opendde;
|
|
1742
|
+
const opendecision = (model) => [
|
|
1743
|
+
`# pip install tokz-opendecision
|
|
1744
|
+
from opendecision import OpenDecision, Choice, Bool, MultiLabel
|
|
1745
|
+
|
|
1746
|
+
model = OpenDecision.from_pretrained("${model.id}")
|
|
1747
|
+
out = model.decide(
|
|
1748
|
+
"I was charged twice for my May invoice and the app keeps logging me out.",
|
|
1749
|
+
{
|
|
1750
|
+
"queue": Choice(["billing", "technical", "account", "sales"]),
|
|
1751
|
+
"tags": MultiLabel(["double_charge", "login_issue", "refund_request", "outage"]),
|
|
1752
|
+
"urgent": Bool(),
|
|
1753
|
+
},
|
|
1754
|
+
)
|
|
1755
|
+
print(out["queue"].best, out["tags"].selected, out["urgent"].policy)`,
|
|
1756
|
+
];
|
|
1757
|
+
exports.opendecision = opendecision;
|
|
1605
1758
|
const paddlenlp = (model) => {
|
|
1606
1759
|
const architecture = model.config?.architectures?.[0];
|
|
1607
1760
|
// interpolated as a Python class name, so a non-identifier is treated as absent
|
|
@@ -1886,6 +2039,13 @@ const timm = (model) => [
|
|
|
1886
2039
|
model = timm.create_model("hf-hub:${model.id}", pretrained=True)`,
|
|
1887
2040
|
];
|
|
1888
2041
|
exports.timm = timm;
|
|
2042
|
+
// create_model() takes a name from the torch-pointcloud registry; the weights live in "torch-pointcloud/<name>"
|
|
2043
|
+
const torch_pointcloud = (model) => [
|
|
2044
|
+
`import torch_pointcloud as tp
|
|
2045
|
+
|
|
2046
|
+
model = tp.create_model("${nameWithoutNamespace(model.id)}", pretrained=True)`,
|
|
2047
|
+
];
|
|
2048
|
+
exports.torch_pointcloud = torch_pointcloud;
|
|
1889
2049
|
const saelens = ( /* model: ModelData */) => [
|
|
1890
2050
|
`# pip install sae-lens
|
|
1891
2051
|
from sae_lens import SAE
|
|
@@ -2795,6 +2955,73 @@ model = SwarmFormerModel.from_pretrained("${model.id}")
|
|
|
2795
2955
|
`,
|
|
2796
2956
|
];
|
|
2797
2957
|
exports.swarmformer = swarmformer;
|
|
2958
|
+
// Unitree deploy controllers live in two repos with slightly different robot folder names:
|
|
2959
|
+
// unitree_rl_lab (policies trained with Isaac Lab) and unitree_rl_mjlab (policies trained with mjlab).
|
|
2960
|
+
const UNITREE_ROBOTS = {
|
|
2961
|
+
"unitree-g1-29dof": { bin: "g1_ctrl", isaaclab: "g1_29dof", mjlab: "g1" },
|
|
2962
|
+
"unitree-g1-23dof": { bin: "g1_ctrl", isaaclab: "g1_23dof", mjlab: "g1_23dof" },
|
|
2963
|
+
"unitree-go2": { bin: "go2_ctrl", isaaclab: "go2", mjlab: "go2" },
|
|
2964
|
+
"unitree-go2w": { bin: "go2w_ctrl", isaaclab: "go2w" },
|
|
2965
|
+
"unitree-h1": { bin: "h1_ctrl", isaaclab: "h1" },
|
|
2966
|
+
"unitree-h1-2": { bin: "h1_2_ctrl", isaaclab: "h1_2", mjlab: "h1_2" },
|
|
2967
|
+
"unitree-b2": { bin: "b2_ctrl", isaaclab: "b2" },
|
|
2968
|
+
"unitree-a2": { bin: "a2_ctrl", mjlab: "a2" },
|
|
2969
|
+
"unitree-r1": { bin: "r1_ctrl", mjlab: "r1" },
|
|
2970
|
+
};
|
|
2971
|
+
const unitree = (model) => {
|
|
2972
|
+
// Everything comes from the model card tags: unitree-<robot>, isaaclab | mjlab, velocity | mimic
|
|
2973
|
+
const framework = model.tags.includes("mjlab") ? "mjlab" : "isaaclab";
|
|
2974
|
+
const repo = framework === "mjlab" ? "unitree_rl_mjlab" : "unitree_rl_lab";
|
|
2975
|
+
const robotTags = Object.keys(UNITREE_ROBOTS).filter((tag) => model.tags.includes(tag));
|
|
2976
|
+
const robot = robotTags.length === 1 ? UNITREE_ROBOTS[robotTags[0]] : undefined;
|
|
2977
|
+
const dir = robot?.[framework];
|
|
2978
|
+
const robotDir = dir ?? "ROBOT";
|
|
2979
|
+
const bin = dir && robot ? robot.bin : "ROBOT_ctrl";
|
|
2980
|
+
const prefix = dir ? "" : `# Replace ROBOT with the robot named in the model card.\n`;
|
|
2981
|
+
const name = model.id.split("/").pop() ?? model.id;
|
|
2982
|
+
const simFlag = framework === "mjlab" ? " --network=lo" : "";
|
|
2983
|
+
let install;
|
|
2984
|
+
if (model.tags.includes("mimic")) {
|
|
2985
|
+
const policyDir = `config/policy/mimic/${name}`;
|
|
2986
|
+
const motion = framework === "mjlab"
|
|
2987
|
+
? `# motion_file: ${policyDir}/params/motion.npz`
|
|
2988
|
+
: `# motion_file: ${policyDir}/params/motion.csv\n# fps: 60`;
|
|
2989
|
+
install = `hf download ${model.id} --local-dir ${policyDir}
|
|
2990
|
+
# Enable the policy in config/config.yaml:
|
|
2991
|
+
# FSM:
|
|
2992
|
+
# _:
|
|
2993
|
+
# Mimic_Hub: {id: 110, type: Mimic}
|
|
2994
|
+
# Velocity:
|
|
2995
|
+
# transitions:
|
|
2996
|
+
# Mimic_Hub: LT(2s) + up.on_pressed
|
|
2997
|
+
# Mimic_Hub:
|
|
2998
|
+
# transitions:
|
|
2999
|
+
# Passive: LT + B.on_pressed
|
|
3000
|
+
# Velocity: RB + X.on_pressed
|
|
3001
|
+
# policy_dir: ${policyDir}/
|
|
3002
|
+
${motion}`;
|
|
3003
|
+
}
|
|
3004
|
+
else {
|
|
3005
|
+
const velocityDir = framework === "mjlab" || dir === "g1_29dof"
|
|
3006
|
+
? "config/policy/velocity"
|
|
3007
|
+
: `../../../logs/rsl_rl/unitree_${robotDir}_velocity`;
|
|
3008
|
+
install = `# The Velocity state runs the last policy folder in ${velocityDir}
|
|
3009
|
+
hf download ${model.id} --local-dir ${velocityDir}/v1`;
|
|
3010
|
+
}
|
|
3011
|
+
return [
|
|
3012
|
+
`${prefix}# 1. Get the deploy controller and the policy
|
|
3013
|
+
git clone https://github.com/unitreerobotics/${repo}
|
|
3014
|
+
cd ${repo}/deploy/robots/${robotDir}
|
|
3015
|
+
${install}`,
|
|
3016
|
+
`# 2. Build the controller on Linux, with unitree_sdk2 and its dependencies installed
|
|
3017
|
+
mkdir -p build && cd build && cmake .. && make`,
|
|
3018
|
+
`# 3. Test in simulation first: start unitree_mujoco, then run
|
|
3019
|
+
./${bin}${simFlag}`,
|
|
3020
|
+
`# 4. Run on the robot, over its Ethernet interface
|
|
3021
|
+
./${bin} --network eth0`,
|
|
3022
|
+
];
|
|
3023
|
+
};
|
|
3024
|
+
exports.unitree = unitree;
|
|
2798
3025
|
const univa = (model) => [
|
|
2799
3026
|
`# Follow installation instructions at https://github.com/PKU-YuanGroup/UniWorld-V1
|
|
2800
3027
|
import torch
|