@huggingface/tasks 0.21.21 → 0.21.23
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/hardware.d.ts +7 -0
- package/dist/commonjs/hardware.d.ts.map +1 -1
- package/dist/commonjs/hardware.js +7 -0
- package/dist/commonjs/local-apps.spec.js +1 -1
- package/dist/commonjs/model-libraries-snippets.d.ts +2 -0
- package/dist/commonjs/model-libraries-snippets.d.ts.map +1 -1
- package/dist/commonjs/model-libraries-snippets.js +82 -5
- package/dist/commonjs/model-libraries.d.ts +23 -1
- package/dist/commonjs/model-libraries.d.ts.map +1 -1
- package/dist/commonjs/model-libraries.js +22 -0
- package/dist/esm/hardware.d.ts +7 -0
- package/dist/esm/hardware.d.ts.map +1 -1
- package/dist/esm/hardware.js +7 -0
- package/dist/esm/local-apps.spec.js +1 -1
- package/dist/esm/model-libraries-snippets.d.ts +2 -0
- package/dist/esm/model-libraries-snippets.d.ts.map +1 -1
- package/dist/esm/model-libraries-snippets.js +77 -2
- package/dist/esm/model-libraries.d.ts +23 -1
- package/dist/esm/model-libraries.d.ts.map +1 -1
- package/dist/esm/model-libraries.js +22 -0
- package/package.json +1 -1
- package/src/hardware.ts +7 -0
- package/src/local-apps.spec.ts +1 -1
- package/src/model-libraries-snippets.ts +82 -2
- package/src/model-libraries.ts +22 -0
|
@@ -61,6 +61,13 @@ export declare const SKUS: {
|
|
|
61
61
|
NVIDIA: Record<string, import("./hardware-nvidia.js").NvidiaHardwareSpec>;
|
|
62
62
|
AMD: Record<string, import("./hardware-amd.js").AmdGpuHardwareSpec>;
|
|
63
63
|
INTEL: {
|
|
64
|
+
"Arc A380": {
|
|
65
|
+
tflops: number;
|
|
66
|
+
memory: number[];
|
|
67
|
+
msrp: number;
|
|
68
|
+
power: number;
|
|
69
|
+
releaseYear: number;
|
|
70
|
+
};
|
|
64
71
|
"Arc A750": {
|
|
65
72
|
tflops: number;
|
|
66
73
|
memory: number[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hardware.d.ts","sourceRoot":"","sources":["../../src/hardware.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,iDAAiD,QAAW,CAAC;AAC1E,eAAO,MAAM,yDAAyD,QAAW,CAAC;AAClF,eAAO,MAAM,oCAAoC,QAAU,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,+CAA+C,QAAW,CAAC;AAExE,MAAM,WAAW,YAAY;IAC5B;;;;;;;;;OASG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;;;;;;;;;OAUG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,WAAW,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,sBAAsB,UAElC,CAAC;AAEF,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"hardware.d.ts","sourceRoot":"","sources":["../../src/hardware.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,iDAAiD,QAAW,CAAC;AAC1E,eAAO,MAAM,yDAAyD,QAAW,CAAC;AAClF,eAAO,MAAM,oCAAoC,QAAU,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,+CAA+C,QAAW,CAAC;AAExE,MAAM,WAAW,YAAY;IAC5B;;;;;;;;;OASG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;;;;;;;;;OAUG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,WAAW,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,sBAAsB,UAElC,CAAC;AAEF,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkjBuD,CAAC;AAEzE,MAAM,MAAM,OAAO,GAAG,MAAM,OAAO,IAAI,CAAC"}
|
|
@@ -23,6 +23,13 @@ exports.SKUS = {
|
|
|
23
23
|
NVIDIA: hardware_nvidia_js_1.NVIDIA_SKUS,
|
|
24
24
|
AMD: hardware_amd_js_1.AMD_GPU_SKUS,
|
|
25
25
|
INTEL: {
|
|
26
|
+
"Arc A380": {
|
|
27
|
+
tflops: 8.4,
|
|
28
|
+
memory: [6],
|
|
29
|
+
msrp: 139,
|
|
30
|
+
power: 75,
|
|
31
|
+
releaseYear: 2022,
|
|
32
|
+
},
|
|
26
33
|
"Arc A750": {
|
|
27
34
|
tflops: 34.41,
|
|
28
35
|
memory: [8],
|
|
@@ -190,7 +190,7 @@ curl -X POST "http://localhost:8000/v1/chat/completions" \\
|
|
|
190
190
|
inference: "",
|
|
191
191
|
};
|
|
192
192
|
const snippet = snippetFunc(model);
|
|
193
|
-
(0, vitest_1.expect)(snippet[0].content).toContain(`llama
|
|
193
|
+
(0, vitest_1.expect)(snippet[0].content).toContain(`llama serve -hf bartowski/Llama-3.2-3B-Instruct-GGUF:{{QUANT_TAG}}`);
|
|
194
194
|
(0, vitest_1.expect)(snippet[1].setup).toContain("npm install -g openclaw@latest");
|
|
195
195
|
(0, vitest_1.expect)(snippet[1].content).toContain("openclaw onboard --non-interactive --mode local");
|
|
196
196
|
(0, vitest_1.expect)(snippet[1].content).toContain("--auth-choice custom-api-key");
|
|
@@ -29,6 +29,7 @@ export declare const espnetASR: (model: ModelData) => string[];
|
|
|
29
29
|
export declare const espnet: (model: ModelData) => string[];
|
|
30
30
|
export declare const fairseq: (model: ModelData) => string[];
|
|
31
31
|
export declare const flair: (model: ModelData) => string[];
|
|
32
|
+
export declare const flextab: () => string[];
|
|
32
33
|
export declare const gliner: (model: ModelData) => string[];
|
|
33
34
|
export declare const gliner2: (model: ModelData) => string[];
|
|
34
35
|
export declare const indextts: (model: ModelData) => string[];
|
|
@@ -49,6 +50,7 @@ export declare const matanyone: (model: ModelData) => string[];
|
|
|
49
50
|
export declare const mesh_anything: () => string[];
|
|
50
51
|
export declare const multimolecule: (model: ModelData) => string[];
|
|
51
52
|
export declare const open_clip: (model: ModelData) => string[];
|
|
53
|
+
export declare const openasr: (model: ModelData) => string[];
|
|
52
54
|
export declare const paddlenlp: (model: ModelData) => string[];
|
|
53
55
|
export declare const paddleocr: (model: ModelData) => string[];
|
|
54
56
|
export declare const perception_encoder: (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,EAAE,MAAM,iBAAiB,CAAC;AAkBjD,eAAO,MAAM,QAAQ,GAAI,OAAO,SAAS,KAAG,MAAM,EAKjD,CAAC;AAkBF,eAAO,MAAM,QAAQ,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AM,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"}
|
|
@@ -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.model2vec = void 0;
|
|
3
|
+
exports.multimolecule = exports.mesh_anything = exports.matanyone = exports.mars5_tts = exports.mamba_ssm = exports.tf_keras = exports.litert_lm = exports.lerobot = exports.llama_cpp_python = exports.lightning_ir = exports.kittentts = exports.kimi_audio = exports.kernels = exports.keras_hub = exports.keras = exports.htrflow = exports.indextts = exports.gliner2 = exports.gliner = exports.flextab = 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.dia2 = exports.dia = exports.derm_foundation = exports.depth_pro = exports.depth_anything_v2 = exports.cxr_foundation = exports.sap_rpt_one_oss = exports.colipri = exports.collectorvision = exports.chronos_forecasting = exports.chatterbox = exports.bm25s = exports.bertopic = exports.ben2 = exports.audioseal = exports.asteroid = exports.araclip = exports.allennlp = exports.adapters = void 0;
|
|
4
|
+
exports.univa = exports.swarmformer = exports.supertonic = 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 = exports.span_marker = exports.spacy = exports.setfit = exports.sentenceTransformers = 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.timm = exports.tensorflowtts = exports.renderformer = exports.relik = exports.pyannote_audio = exports.pyannote_audio_pipeline = exports.pocket_tts = exports.phantom_wan = exports.perception_encoder = exports.paddleocr = exports.paddlenlp = exports.openasr = exports.open_clip = 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.model2vec = exports.mlx = exports.mlxim = 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");
|
|
@@ -719,6 +719,72 @@ const flair = (model) => [
|
|
|
719
719
|
tagger = SequenceTagger.load("${model.id}")`,
|
|
720
720
|
];
|
|
721
721
|
exports.flair = flair;
|
|
722
|
+
const flextab = () => {
|
|
723
|
+
const installSnippet = `pip install git+https://github.com/SAP-samples/flextab`;
|
|
724
|
+
const classificationSnippet = `# Run a classification task
|
|
725
|
+
from sklearn.datasets import load_breast_cancer
|
|
726
|
+
from sklearn.metrics import accuracy_score
|
|
727
|
+
from sklearn.model_selection import train_test_split
|
|
728
|
+
|
|
729
|
+
from flextab import FlexTabClassifier
|
|
730
|
+
|
|
731
|
+
# Load sample data
|
|
732
|
+
X, y = load_breast_cancer(return_X_y=True)
|
|
733
|
+
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.5, random_state=42)
|
|
734
|
+
|
|
735
|
+
# Initialize a classifier, 8k context and 8-fold bagging gives best performance, reduce if running out of memory
|
|
736
|
+
clf = FlexTabClassifier(max_context_size=8192, bagging=8)
|
|
737
|
+
|
|
738
|
+
clf.fit(X_train, y_train)
|
|
739
|
+
|
|
740
|
+
# Predict probabilities
|
|
741
|
+
prediction_probabilities = clf.predict_proba(X_test)
|
|
742
|
+
# Predict labels
|
|
743
|
+
predictions = clf.predict(X_test)
|
|
744
|
+
print("Accuracy", accuracy_score(y_test, predictions))`;
|
|
745
|
+
const regressionsSnippet = `# Run a regression task
|
|
746
|
+
from sklearn.datasets import fetch_openml
|
|
747
|
+
from sklearn.metrics import r2_score
|
|
748
|
+
from sklearn.model_selection import train_test_split
|
|
749
|
+
|
|
750
|
+
from flextab import FlexTabRegressor
|
|
751
|
+
|
|
752
|
+
# Load sample data
|
|
753
|
+
df = fetch_openml(data_id=531, as_frame=True)
|
|
754
|
+
X = df.data
|
|
755
|
+
y = df.target.astype(float)
|
|
756
|
+
|
|
757
|
+
# Train-test split
|
|
758
|
+
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.5, random_state=42)
|
|
759
|
+
|
|
760
|
+
# Initialize the regressor, 8k context and 8-fold bagging gives best performance, reduce if running out of memory
|
|
761
|
+
regressor = FlexTabRegressor(max_context_size=8192, bagging=8)
|
|
762
|
+
|
|
763
|
+
regressor.fit(X_train, y_train)
|
|
764
|
+
|
|
765
|
+
# Predict on the test set
|
|
766
|
+
predictions = regressor.predict(X_test)
|
|
767
|
+
|
|
768
|
+
r2 = r2_score(y_test, predictions)
|
|
769
|
+
print("R² Score:", r2)`;
|
|
770
|
+
const matchingSnippet = `# Run a matching task
|
|
771
|
+
from sklearn.metrics import accuracy_score, roc_auc_score
|
|
772
|
+
|
|
773
|
+
from flextab import FlexTabMatcher
|
|
774
|
+
from flextab.utils.test_utils import load_febrl4
|
|
775
|
+
|
|
776
|
+
left_train, left_test, right_train, right_test, y_train, y_test = load_febrl4()
|
|
777
|
+
|
|
778
|
+
matcher = FlexTabMatcher(max_context_size=8192, bagging=1)
|
|
779
|
+
matcher.fit(left_train, right_train, y_train)
|
|
780
|
+
predictions = matcher.predict(left_test, right_test)
|
|
781
|
+
print(f'Accuracy {accuracy_score(y_test, predictions):.2%}')
|
|
782
|
+
# Probabilities (e.g. for thresholding or AUROC):
|
|
783
|
+
# probas = matcher.predict_proba_matching(left_test, right_test)
|
|
784
|
+
# print(f'AUROC {roc_auc_score(y_test, probas[:, 1]):.2%}')`;
|
|
785
|
+
return [installSnippet, classificationSnippet, regressionsSnippet, matchingSnippet];
|
|
786
|
+
};
|
|
787
|
+
exports.flextab = flextab;
|
|
722
788
|
const gliner = (model) => [
|
|
723
789
|
`from gliner import GLiNER
|
|
724
790
|
|
|
@@ -1033,13 +1099,12 @@ const litert_lm = (model) => [
|
|
|
1033
1099
|
|
|
1034
1100
|
# To try LiteRT-LM, the easiest way is to use our CLI tool.
|
|
1035
1101
|
# 1. Install the LiteRT-LM CLI tool:
|
|
1036
|
-
pip install litert-lm
|
|
1102
|
+
pip install -U litert-lm
|
|
1037
1103
|
|
|
1038
1104
|
# 2. Download and run this model locally:
|
|
1039
1105
|
# See: https://ai.google.dev/edge/litert-lm/cli
|
|
1040
1106
|
litert-lm run \\
|
|
1041
1107
|
--from-huggingface-repo=${model.id} \\
|
|
1042
|
-
model.litertlm \\
|
|
1043
1108
|
--prompt="Write me a poem"`,
|
|
1044
1109
|
];
|
|
1045
1110
|
exports.litert_lm = litert_lm;
|
|
@@ -1132,6 +1197,18 @@ model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms(
|
|
|
1132
1197
|
tokenizer = open_clip.get_tokenizer('hf-hub:${model.id}')`,
|
|
1133
1198
|
];
|
|
1134
1199
|
exports.open_clip = open_clip;
|
|
1200
|
+
const openasr = (model) => {
|
|
1201
|
+
// OpenASR's local model registry keys packs by their short id (the final path segment
|
|
1202
|
+
// of the Hub repo id, e.g. "xasr-zh-en" for "OpenASR/xasr-zh-en"), not the full
|
|
1203
|
+
// "org/repo" reference, so the CLI commands below use that short id.
|
|
1204
|
+
const modelId = model.id.split("/").pop() ?? model.id;
|
|
1205
|
+
return [
|
|
1206
|
+
`# Install the openasr CLI: https://github.com/QuintinShaw/openasr/releases
|
|
1207
|
+
openasr pull ${modelId}
|
|
1208
|
+
openasr transcribe audio.wav --model ${modelId}`,
|
|
1209
|
+
];
|
|
1210
|
+
};
|
|
1211
|
+
exports.openasr = openasr;
|
|
1135
1212
|
const paddlenlp = (model) => {
|
|
1136
1213
|
if (model.config?.architectures?.[0]) {
|
|
1137
1214
|
const architecture = model.config.architectures[0];
|
|
@@ -511,6 +511,13 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
511
511
|
filter: true;
|
|
512
512
|
countDownloads: string;
|
|
513
513
|
};
|
|
514
|
+
flextab: {
|
|
515
|
+
prettyLabel: string;
|
|
516
|
+
repoName: string;
|
|
517
|
+
repoUrl: string;
|
|
518
|
+
countDownloads: string;
|
|
519
|
+
snippets: () => string[];
|
|
520
|
+
};
|
|
514
521
|
fme: {
|
|
515
522
|
prettyLabel: string;
|
|
516
523
|
repoName: string;
|
|
@@ -1006,6 +1013,15 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
1006
1013
|
filter: true;
|
|
1007
1014
|
countDownloads: string;
|
|
1008
1015
|
};
|
|
1016
|
+
openasr: {
|
|
1017
|
+
prettyLabel: string;
|
|
1018
|
+
repoName: string;
|
|
1019
|
+
repoUrl: string;
|
|
1020
|
+
docsUrl: string;
|
|
1021
|
+
snippets: (model: ModelData) => string[];
|
|
1022
|
+
filter: false;
|
|
1023
|
+
countDownloads: string;
|
|
1024
|
+
};
|
|
1009
1025
|
openpeerllm: {
|
|
1010
1026
|
prettyLabel: string;
|
|
1011
1027
|
repoName: string;
|
|
@@ -1502,6 +1518,12 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
1502
1518
|
repoUrl: string;
|
|
1503
1519
|
countDownloads: string;
|
|
1504
1520
|
};
|
|
1521
|
+
"tirex-2": {
|
|
1522
|
+
prettyLabel: string;
|
|
1523
|
+
repoName: string;
|
|
1524
|
+
repoUrl: string;
|
|
1525
|
+
countDownloads: string;
|
|
1526
|
+
};
|
|
1505
1527
|
torchgeo: {
|
|
1506
1528
|
prettyLabel: string;
|
|
1507
1529
|
repoName: string;
|
|
@@ -1701,5 +1723,5 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
1701
1723
|
};
|
|
1702
1724
|
export type ModelLibraryKey = keyof typeof MODEL_LIBRARIES_UI_ELEMENTS;
|
|
1703
1725
|
export declare const ALL_MODEL_LIBRARY_KEYS: ModelLibraryKey[];
|
|
1704
|
-
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" | "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" | "fme" | "gemma.cpp" | "geometry-crafter" | "gliner" | "gliner2" | "glm-tts" | "glyph-byt5" | "granite-library" | "grok" | "habibi-tts" | "hallo" | "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" | "kernels" | "kimi-audio" | "kittentts" | "kronos" | "k2" | "lyra-2.0" | "lagernvs" | "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" | "mitie" | "ml-agents" | "ml-sharp" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "moshi" | "mtvcraft" | "multimolecule" | "nemo" | "nv-medtech" | "open-oasis" | "open_clip" | "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" | "timm" | "tirex" | "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")[];
|
|
1726
|
+
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" | "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" | "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" | "kernels" | "kimi-audio" | "kittentts" | "kronos" | "k2" | "lyra-2.0" | "lagernvs" | "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" | "mitie" | "ml-agents" | "ml-sharp" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "moshi" | "mtvcraft" | "multimolecule" | "nemo" | "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" | "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")[];
|
|
1705
1727
|
//# 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,K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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0oDI,CAAC;AAE7C,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,2BAA2B,CAAC;AAEvE,eAAO,MAAM,sBAAsB,EAA+C,eAAe,EAAE,CAAC;AAEpG,eAAO,MAAM,8BAA8B,2tGAQ1B,CAAC"}
|
|
@@ -508,6 +508,13 @@ exports.MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
508
508
|
filter: true,
|
|
509
509
|
countDownloads: `path:"pytorch_model.bin"`,
|
|
510
510
|
},
|
|
511
|
+
flextab: {
|
|
512
|
+
prettyLabel: "FlexTab",
|
|
513
|
+
repoName: "FlexTab",
|
|
514
|
+
repoUrl: "https://github.com/SAP-samples/flextab",
|
|
515
|
+
countDownloads: `path_extension:"pt"`,
|
|
516
|
+
snippets: snippets.flextab,
|
|
517
|
+
},
|
|
511
518
|
fme: {
|
|
512
519
|
prettyLabel: "Full Model Emulation",
|
|
513
520
|
repoName: "Full Model Emulation",
|
|
@@ -1007,6 +1014,15 @@ exports.MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
1007
1014
|
OR path:"open_clip_pytorch_model.bin"
|
|
1008
1015
|
OR path:"pytorch_model.bin"`,
|
|
1009
1016
|
},
|
|
1017
|
+
openasr: {
|
|
1018
|
+
prettyLabel: "OpenASR",
|
|
1019
|
+
repoName: "OpenASR",
|
|
1020
|
+
repoUrl: "https://github.com/QuintinShaw/openasr",
|
|
1021
|
+
docsUrl: "https://github.com/QuintinShaw/openasr/blob/main/docs/DOCS_INDEX.md",
|
|
1022
|
+
snippets: snippets.openasr,
|
|
1023
|
+
filter: false,
|
|
1024
|
+
countDownloads: `path_extension:"oasr"`,
|
|
1025
|
+
},
|
|
1010
1026
|
openpeerllm: {
|
|
1011
1027
|
prettyLabel: "OpenPeerLLM",
|
|
1012
1028
|
repoName: "OpenPeerLLM",
|
|
@@ -1503,6 +1519,12 @@ exports.MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
1503
1519
|
repoUrl: "https://github.com/NX-AI/tirex",
|
|
1504
1520
|
countDownloads: `path_extension:"ckpt"`,
|
|
1505
1521
|
},
|
|
1522
|
+
"tirex-2": {
|
|
1523
|
+
prettyLabel: "TiRex-2",
|
|
1524
|
+
repoName: "TiRex-2",
|
|
1525
|
+
repoUrl: "https://github.com/NX-AI/tirex-2",
|
|
1526
|
+
countDownloads: `path:"model-config.yaml"`,
|
|
1527
|
+
},
|
|
1506
1528
|
torchgeo: {
|
|
1507
1529
|
prettyLabel: "TorchGeo",
|
|
1508
1530
|
repoName: "TorchGeo",
|
package/dist/esm/hardware.d.ts
CHANGED
|
@@ -61,6 +61,13 @@ export declare const SKUS: {
|
|
|
61
61
|
NVIDIA: Record<string, import("./hardware-nvidia.js").NvidiaHardwareSpec>;
|
|
62
62
|
AMD: Record<string, import("./hardware-amd.js").AmdGpuHardwareSpec>;
|
|
63
63
|
INTEL: {
|
|
64
|
+
"Arc A380": {
|
|
65
|
+
tflops: number;
|
|
66
|
+
memory: number[];
|
|
67
|
+
msrp: number;
|
|
68
|
+
power: number;
|
|
69
|
+
releaseYear: number;
|
|
70
|
+
};
|
|
64
71
|
"Arc A750": {
|
|
65
72
|
tflops: number;
|
|
66
73
|
memory: number[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hardware.d.ts","sourceRoot":"","sources":["../../src/hardware.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,iDAAiD,QAAW,CAAC;AAC1E,eAAO,MAAM,yDAAyD,QAAW,CAAC;AAClF,eAAO,MAAM,oCAAoC,QAAU,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,+CAA+C,QAAW,CAAC;AAExE,MAAM,WAAW,YAAY;IAC5B;;;;;;;;;OASG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;;;;;;;;;OAUG;IAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkjBuD,CAAC;AAEzE,MAAM,MAAM,OAAO,GAAG,MAAM,OAAO,IAAI,CAAC"}
|
package/dist/esm/hardware.js
CHANGED
|
@@ -188,7 +188,7 @@ curl -X POST "http://localhost:8000/v1/chat/completions" \\
|
|
|
188
188
|
inference: "",
|
|
189
189
|
};
|
|
190
190
|
const snippet = snippetFunc(model);
|
|
191
|
-
expect(snippet[0].content).toContain(`llama
|
|
191
|
+
expect(snippet[0].content).toContain(`llama serve -hf bartowski/Llama-3.2-3B-Instruct-GGUF:{{QUANT_TAG}}`);
|
|
192
192
|
expect(snippet[1].setup).toContain("npm install -g openclaw@latest");
|
|
193
193
|
expect(snippet[1].content).toContain("openclaw onboard --non-interactive --mode local");
|
|
194
194
|
expect(snippet[1].content).toContain("--auth-choice custom-api-key");
|
|
@@ -29,6 +29,7 @@ export declare const espnetASR: (model: ModelData) => string[];
|
|
|
29
29
|
export declare const espnet: (model: ModelData) => string[];
|
|
30
30
|
export declare const fairseq: (model: ModelData) => string[];
|
|
31
31
|
export declare const flair: (model: ModelData) => string[];
|
|
32
|
+
export declare const flextab: () => string[];
|
|
32
33
|
export declare const gliner: (model: ModelData) => string[];
|
|
33
34
|
export declare const gliner2: (model: ModelData) => string[];
|
|
34
35
|
export declare const indextts: (model: ModelData) => string[];
|
|
@@ -49,6 +50,7 @@ export declare const matanyone: (model: ModelData) => string[];
|
|
|
49
50
|
export declare const mesh_anything: () => string[];
|
|
50
51
|
export declare const multimolecule: (model: ModelData) => string[];
|
|
51
52
|
export declare const open_clip: (model: ModelData) => string[];
|
|
53
|
+
export declare const openasr: (model: ModelData) => string[];
|
|
52
54
|
export declare const paddlenlp: (model: ModelData) => string[];
|
|
53
55
|
export declare const paddleocr: (model: ModelData) => string[];
|
|
54
56
|
export declare const perception_encoder: (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,EAAE,MAAM,iBAAiB,CAAC;AAkBjD,eAAO,MAAM,QAAQ,GAAI,OAAO,SAAS,KAAG,MAAM,EAKjD,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,SAAS,KAAG,MAAM,EAI9C,CAAC;AAEF,eAAO,MAAM,UAAU,QAAO,MAAM,EAenC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,OAAO,SAAS,KAAG,MAAM,EAsB5D,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,OAAO,SAAS,KAAG,MAAM,EAYxD,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,OAAO,SAAS,KAAG,MAAM,EAkBhD,CAAC;AAEF,eAAO,MAAM,eAAe,QAAO,MAAM,EAmDxC,CAAC;AAEF,eAAO,MAAM,cAAc,QAAO,MAAM,EAcvC,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,OAAO,S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
|
|
688
|
+
const installSnippet = `pip install git+https://github.com/SAP-samples/flextab`;
|
|
689
|
+
const classificationSnippet = `# Run a classification task
|
|
690
|
+
from sklearn.datasets import load_breast_cancer
|
|
691
|
+
from sklearn.metrics import accuracy_score
|
|
692
|
+
from sklearn.model_selection import train_test_split
|
|
693
|
+
|
|
694
|
+
from flextab import FlexTabClassifier
|
|
695
|
+
|
|
696
|
+
# Load sample data
|
|
697
|
+
X, y = load_breast_cancer(return_X_y=True)
|
|
698
|
+
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.5, random_state=42)
|
|
699
|
+
|
|
700
|
+
# Initialize a classifier, 8k context and 8-fold bagging gives best performance, reduce if running out of memory
|
|
701
|
+
clf = FlexTabClassifier(max_context_size=8192, bagging=8)
|
|
702
|
+
|
|
703
|
+
clf.fit(X_train, y_train)
|
|
704
|
+
|
|
705
|
+
# Predict probabilities
|
|
706
|
+
prediction_probabilities = clf.predict_proba(X_test)
|
|
707
|
+
# Predict labels
|
|
708
|
+
predictions = clf.predict(X_test)
|
|
709
|
+
print("Accuracy", accuracy_score(y_test, predictions))`;
|
|
710
|
+
const regressionsSnippet = `# Run a regression task
|
|
711
|
+
from sklearn.datasets import fetch_openml
|
|
712
|
+
from sklearn.metrics import r2_score
|
|
713
|
+
from sklearn.model_selection import train_test_split
|
|
714
|
+
|
|
715
|
+
from flextab import FlexTabRegressor
|
|
716
|
+
|
|
717
|
+
# Load sample data
|
|
718
|
+
df = fetch_openml(data_id=531, as_frame=True)
|
|
719
|
+
X = df.data
|
|
720
|
+
y = df.target.astype(float)
|
|
721
|
+
|
|
722
|
+
# Train-test split
|
|
723
|
+
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.5, random_state=42)
|
|
724
|
+
|
|
725
|
+
# Initialize the regressor, 8k context and 8-fold bagging gives best performance, reduce if running out of memory
|
|
726
|
+
regressor = FlexTabRegressor(max_context_size=8192, bagging=8)
|
|
727
|
+
|
|
728
|
+
regressor.fit(X_train, y_train)
|
|
729
|
+
|
|
730
|
+
# Predict on the test set
|
|
731
|
+
predictions = regressor.predict(X_test)
|
|
732
|
+
|
|
733
|
+
r2 = r2_score(y_test, predictions)
|
|
734
|
+
print("R² Score:", r2)`;
|
|
735
|
+
const matchingSnippet = `# Run a matching task
|
|
736
|
+
from sklearn.metrics import accuracy_score, roc_auc_score
|
|
737
|
+
|
|
738
|
+
from flextab import FlexTabMatcher
|
|
739
|
+
from flextab.utils.test_utils import load_febrl4
|
|
740
|
+
|
|
741
|
+
left_train, left_test, right_train, right_test, y_train, y_test = load_febrl4()
|
|
742
|
+
|
|
743
|
+
matcher = FlexTabMatcher(max_context_size=8192, bagging=1)
|
|
744
|
+
matcher.fit(left_train, right_train, y_train)
|
|
745
|
+
predictions = matcher.predict(left_test, right_test)
|
|
746
|
+
print(f'Accuracy {accuracy_score(y_test, predictions):.2%}')
|
|
747
|
+
# Probabilities (e.g. for thresholding or AUROC):
|
|
748
|
+
# probas = matcher.predict_proba_matching(left_test, right_test)
|
|
749
|
+
# print(f'AUROC {roc_auc_score(y_test, probas[:, 1]):.2%}')`;
|
|
750
|
+
return [installSnippet, classificationSnippet, regressionsSnippet, matchingSnippet];
|
|
751
|
+
};
|
|
687
752
|
export const gliner = (model) => [
|
|
688
753
|
`from gliner import GLiNER
|
|
689
754
|
|
|
@@ -986,13 +1051,12 @@ export const litert_lm = (model) => [
|
|
|
986
1051
|
|
|
987
1052
|
# To try LiteRT-LM, the easiest way is to use our CLI tool.
|
|
988
1053
|
# 1. Install the LiteRT-LM CLI tool:
|
|
989
|
-
pip install litert-lm
|
|
1054
|
+
pip install -U litert-lm
|
|
990
1055
|
|
|
991
1056
|
# 2. Download and run this model locally:
|
|
992
1057
|
# See: https://ai.google.dev/edge/litert-lm/cli
|
|
993
1058
|
litert-lm run \\
|
|
994
1059
|
--from-huggingface-repo=${model.id} \\
|
|
995
|
-
model.litertlm \\
|
|
996
1060
|
--prompt="Write me a poem"`,
|
|
997
1061
|
];
|
|
998
1062
|
export const tf_keras = (model) => [
|
|
@@ -1077,6 +1141,17 @@ export const open_clip = (model) => [
|
|
|
1077
1141
|
model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:${model.id}')
|
|
1078
1142
|
tokenizer = open_clip.get_tokenizer('hf-hub:${model.id}')`,
|
|
1079
1143
|
];
|
|
1144
|
+
export const openasr = (model) => {
|
|
1145
|
+
// OpenASR's local model registry keys packs by their short id (the final path segment
|
|
1146
|
+
// of the Hub repo id, e.g. "xasr-zh-en" for "OpenASR/xasr-zh-en"), not the full
|
|
1147
|
+
// "org/repo" reference, so the CLI commands below use that short id.
|
|
1148
|
+
const modelId = model.id.split("/").pop() ?? model.id;
|
|
1149
|
+
return [
|
|
1150
|
+
`# Install the openasr CLI: https://github.com/QuintinShaw/openasr/releases
|
|
1151
|
+
openasr pull ${modelId}
|
|
1152
|
+
openasr transcribe audio.wav --model ${modelId}`,
|
|
1153
|
+
];
|
|
1154
|
+
};
|
|
1080
1155
|
export const paddlenlp = (model) => {
|
|
1081
1156
|
if (model.config?.architectures?.[0]) {
|
|
1082
1157
|
const architecture = model.config.architectures[0];
|
|
@@ -511,6 +511,13 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
511
511
|
filter: true;
|
|
512
512
|
countDownloads: string;
|
|
513
513
|
};
|
|
514
|
+
flextab: {
|
|
515
|
+
prettyLabel: string;
|
|
516
|
+
repoName: string;
|
|
517
|
+
repoUrl: string;
|
|
518
|
+
countDownloads: string;
|
|
519
|
+
snippets: () => string[];
|
|
520
|
+
};
|
|
514
521
|
fme: {
|
|
515
522
|
prettyLabel: string;
|
|
516
523
|
repoName: string;
|
|
@@ -1006,6 +1013,15 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
1006
1013
|
filter: true;
|
|
1007
1014
|
countDownloads: string;
|
|
1008
1015
|
};
|
|
1016
|
+
openasr: {
|
|
1017
|
+
prettyLabel: string;
|
|
1018
|
+
repoName: string;
|
|
1019
|
+
repoUrl: string;
|
|
1020
|
+
docsUrl: string;
|
|
1021
|
+
snippets: (model: ModelData) => string[];
|
|
1022
|
+
filter: false;
|
|
1023
|
+
countDownloads: string;
|
|
1024
|
+
};
|
|
1009
1025
|
openpeerllm: {
|
|
1010
1026
|
prettyLabel: string;
|
|
1011
1027
|
repoName: string;
|
|
@@ -1502,6 +1518,12 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
1502
1518
|
repoUrl: string;
|
|
1503
1519
|
countDownloads: string;
|
|
1504
1520
|
};
|
|
1521
|
+
"tirex-2": {
|
|
1522
|
+
prettyLabel: string;
|
|
1523
|
+
repoName: string;
|
|
1524
|
+
repoUrl: string;
|
|
1525
|
+
countDownloads: string;
|
|
1526
|
+
};
|
|
1505
1527
|
torchgeo: {
|
|
1506
1528
|
prettyLabel: string;
|
|
1507
1529
|
repoName: string;
|
|
@@ -1701,5 +1723,5 @@ export declare const MODEL_LIBRARIES_UI_ELEMENTS: {
|
|
|
1701
1723
|
};
|
|
1702
1724
|
export type ModelLibraryKey = keyof typeof MODEL_LIBRARIES_UI_ELEMENTS;
|
|
1703
1725
|
export declare const ALL_MODEL_LIBRARY_KEYS: ModelLibraryKey[];
|
|
1704
|
-
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" | "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" | "fme" | "gemma.cpp" | "geometry-crafter" | "gliner" | "gliner2" | "glm-tts" | "glyph-byt5" | "granite-library" | "grok" | "habibi-tts" | "hallo" | "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" | "kernels" | "kimi-audio" | "kittentts" | "kronos" | "k2" | "lyra-2.0" | "lagernvs" | "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" | "mitie" | "ml-agents" | "ml-sharp" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "moshi" | "mtvcraft" | "multimolecule" | "nemo" | "nv-medtech" | "open-oasis" | "open_clip" | "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" | "timm" | "tirex" | "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")[];
|
|
1726
|
+
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" | "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" | "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" | "kernels" | "kimi-audio" | "kittentts" | "kronos" | "k2" | "lyra-2.0" | "lagernvs" | "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" | "mitie" | "ml-agents" | "ml-sharp" | "mlx" | "mlx-image" | "mlc-llm" | "model2vec" | "moshi" | "mtvcraft" | "multimolecule" | "nemo" | "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" | "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")[];
|
|
1705
1727
|
//# 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,W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O,2BAA2B,CAAC;AAEvE,eAAO,MAAM,sBAAsB,EAA+C,eAAe,EAAE,CAAC;AAEpG,eAAO,MAAM,8BAA8B,2tGAQ1B,CAAC"}
|
|
@@ -472,6 +472,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
472
472
|
filter: true,
|
|
473
473
|
countDownloads: `path:"pytorch_model.bin"`,
|
|
474
474
|
},
|
|
475
|
+
flextab: {
|
|
476
|
+
prettyLabel: "FlexTab",
|
|
477
|
+
repoName: "FlexTab",
|
|
478
|
+
repoUrl: "https://github.com/SAP-samples/flextab",
|
|
479
|
+
countDownloads: `path_extension:"pt"`,
|
|
480
|
+
snippets: snippets.flextab,
|
|
481
|
+
},
|
|
475
482
|
fme: {
|
|
476
483
|
prettyLabel: "Full Model Emulation",
|
|
477
484
|
repoName: "Full Model Emulation",
|
|
@@ -971,6 +978,15 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
971
978
|
OR path:"open_clip_pytorch_model.bin"
|
|
972
979
|
OR path:"pytorch_model.bin"`,
|
|
973
980
|
},
|
|
981
|
+
openasr: {
|
|
982
|
+
prettyLabel: "OpenASR",
|
|
983
|
+
repoName: "OpenASR",
|
|
984
|
+
repoUrl: "https://github.com/QuintinShaw/openasr",
|
|
985
|
+
docsUrl: "https://github.com/QuintinShaw/openasr/blob/main/docs/DOCS_INDEX.md",
|
|
986
|
+
snippets: snippets.openasr,
|
|
987
|
+
filter: false,
|
|
988
|
+
countDownloads: `path_extension:"oasr"`,
|
|
989
|
+
},
|
|
974
990
|
openpeerllm: {
|
|
975
991
|
prettyLabel: "OpenPeerLLM",
|
|
976
992
|
repoName: "OpenPeerLLM",
|
|
@@ -1467,6 +1483,12 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
1467
1483
|
repoUrl: "https://github.com/NX-AI/tirex",
|
|
1468
1484
|
countDownloads: `path_extension:"ckpt"`,
|
|
1469
1485
|
},
|
|
1486
|
+
"tirex-2": {
|
|
1487
|
+
prettyLabel: "TiRex-2",
|
|
1488
|
+
repoName: "TiRex-2",
|
|
1489
|
+
repoUrl: "https://github.com/NX-AI/tirex-2",
|
|
1490
|
+
countDownloads: `path:"model-config.yaml"`,
|
|
1491
|
+
},
|
|
1470
1492
|
torchgeo: {
|
|
1471
1493
|
prettyLabel: "TorchGeo",
|
|
1472
1494
|
repoName: "TorchGeo",
|
package/package.json
CHANGED
package/src/hardware.ts
CHANGED
package/src/local-apps.spec.ts
CHANGED
|
@@ -211,7 +211,7 @@ curl -X POST "http://localhost:8000/v1/chat/completions" \\
|
|
|
211
211
|
};
|
|
212
212
|
const snippet = snippetFunc(model);
|
|
213
213
|
|
|
214
|
-
expect(snippet[0].content).toContain(`llama
|
|
214
|
+
expect(snippet[0].content).toContain(`llama serve -hf bartowski/Llama-3.2-3B-Instruct-GGUF:{{QUANT_TAG}}`);
|
|
215
215
|
expect(snippet[1].setup).toContain("npm install -g openclaw@latest");
|
|
216
216
|
expect(snippet[1].content).toContain("openclaw onboard --non-interactive --mode local");
|
|
217
217
|
expect(snippet[1].content).toContain("--auth-choice custom-api-key");
|
|
@@ -748,6 +748,75 @@ export const flair = (model: ModelData): string[] => [
|
|
|
748
748
|
tagger = SequenceTagger.load("${model.id}")`,
|
|
749
749
|
];
|
|
750
750
|
|
|
751
|
+
export const flextab = (): string[] => {
|
|
752
|
+
const installSnippet = `pip install git+https://github.com/SAP-samples/flextab`;
|
|
753
|
+
|
|
754
|
+
const classificationSnippet = `# Run a classification task
|
|
755
|
+
from sklearn.datasets import load_breast_cancer
|
|
756
|
+
from sklearn.metrics import accuracy_score
|
|
757
|
+
from sklearn.model_selection import train_test_split
|
|
758
|
+
|
|
759
|
+
from flextab import FlexTabClassifier
|
|
760
|
+
|
|
761
|
+
# Load sample data
|
|
762
|
+
X, y = load_breast_cancer(return_X_y=True)
|
|
763
|
+
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.5, random_state=42)
|
|
764
|
+
|
|
765
|
+
# Initialize a classifier, 8k context and 8-fold bagging gives best performance, reduce if running out of memory
|
|
766
|
+
clf = FlexTabClassifier(max_context_size=8192, bagging=8)
|
|
767
|
+
|
|
768
|
+
clf.fit(X_train, y_train)
|
|
769
|
+
|
|
770
|
+
# Predict probabilities
|
|
771
|
+
prediction_probabilities = clf.predict_proba(X_test)
|
|
772
|
+
# Predict labels
|
|
773
|
+
predictions = clf.predict(X_test)
|
|
774
|
+
print("Accuracy", accuracy_score(y_test, predictions))`;
|
|
775
|
+
|
|
776
|
+
const regressionsSnippet = `# Run a regression task
|
|
777
|
+
from sklearn.datasets import fetch_openml
|
|
778
|
+
from sklearn.metrics import r2_score
|
|
779
|
+
from sklearn.model_selection import train_test_split
|
|
780
|
+
|
|
781
|
+
from flextab import FlexTabRegressor
|
|
782
|
+
|
|
783
|
+
# Load sample data
|
|
784
|
+
df = fetch_openml(data_id=531, as_frame=True)
|
|
785
|
+
X = df.data
|
|
786
|
+
y = df.target.astype(float)
|
|
787
|
+
|
|
788
|
+
# Train-test split
|
|
789
|
+
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.5, random_state=42)
|
|
790
|
+
|
|
791
|
+
# Initialize the regressor, 8k context and 8-fold bagging gives best performance, reduce if running out of memory
|
|
792
|
+
regressor = FlexTabRegressor(max_context_size=8192, bagging=8)
|
|
793
|
+
|
|
794
|
+
regressor.fit(X_train, y_train)
|
|
795
|
+
|
|
796
|
+
# Predict on the test set
|
|
797
|
+
predictions = regressor.predict(X_test)
|
|
798
|
+
|
|
799
|
+
r2 = r2_score(y_test, predictions)
|
|
800
|
+
print("R² Score:", r2)`;
|
|
801
|
+
|
|
802
|
+
const matchingSnippet = `# Run a matching task
|
|
803
|
+
from sklearn.metrics import accuracy_score, roc_auc_score
|
|
804
|
+
|
|
805
|
+
from flextab import FlexTabMatcher
|
|
806
|
+
from flextab.utils.test_utils import load_febrl4
|
|
807
|
+
|
|
808
|
+
left_train, left_test, right_train, right_test, y_train, y_test = load_febrl4()
|
|
809
|
+
|
|
810
|
+
matcher = FlexTabMatcher(max_context_size=8192, bagging=1)
|
|
811
|
+
matcher.fit(left_train, right_train, y_train)
|
|
812
|
+
predictions = matcher.predict(left_test, right_test)
|
|
813
|
+
print(f'Accuracy {accuracy_score(y_test, predictions):.2%}')
|
|
814
|
+
# Probabilities (e.g. for thresholding or AUROC):
|
|
815
|
+
# probas = matcher.predict_proba_matching(left_test, right_test)
|
|
816
|
+
# print(f'AUROC {roc_auc_score(y_test, probas[:, 1]):.2%}')`;
|
|
817
|
+
return [installSnippet, classificationSnippet, regressionsSnippet, matchingSnippet];
|
|
818
|
+
};
|
|
819
|
+
|
|
751
820
|
export const gliner = (model: ModelData): string[] => [
|
|
752
821
|
`from gliner import GLiNER
|
|
753
822
|
|
|
@@ -1074,13 +1143,12 @@ export const litert_lm = (model: ModelData): string[] => [
|
|
|
1074
1143
|
|
|
1075
1144
|
# To try LiteRT-LM, the easiest way is to use our CLI tool.
|
|
1076
1145
|
# 1. Install the LiteRT-LM CLI tool:
|
|
1077
|
-
pip install litert-lm
|
|
1146
|
+
pip install -U litert-lm
|
|
1078
1147
|
|
|
1079
1148
|
# 2. Download and run this model locally:
|
|
1080
1149
|
# See: https://ai.google.dev/edge/litert-lm/cli
|
|
1081
1150
|
litert-lm run \\
|
|
1082
1151
|
--from-huggingface-repo=${model.id} \\
|
|
1083
|
-
model.litertlm \\
|
|
1084
1152
|
--prompt="Write me a poem"`,
|
|
1085
1153
|
];
|
|
1086
1154
|
|
|
@@ -1183,6 +1251,18 @@ model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms(
|
|
|
1183
1251
|
tokenizer = open_clip.get_tokenizer('hf-hub:${model.id}')`,
|
|
1184
1252
|
];
|
|
1185
1253
|
|
|
1254
|
+
export const openasr = (model: ModelData): string[] => {
|
|
1255
|
+
// OpenASR's local model registry keys packs by their short id (the final path segment
|
|
1256
|
+
// of the Hub repo id, e.g. "xasr-zh-en" for "OpenASR/xasr-zh-en"), not the full
|
|
1257
|
+
// "org/repo" reference, so the CLI commands below use that short id.
|
|
1258
|
+
const modelId = model.id.split("/").pop() ?? model.id;
|
|
1259
|
+
return [
|
|
1260
|
+
`# Install the openasr CLI: https://github.com/QuintinShaw/openasr/releases
|
|
1261
|
+
openasr pull ${modelId}
|
|
1262
|
+
openasr transcribe audio.wav --model ${modelId}`,
|
|
1263
|
+
];
|
|
1264
|
+
};
|
|
1265
|
+
|
|
1186
1266
|
export const paddlenlp = (model: ModelData): string[] => {
|
|
1187
1267
|
if (model.config?.architectures?.[0]) {
|
|
1188
1268
|
const architecture = model.config.architectures[0];
|
package/src/model-libraries.ts
CHANGED
|
@@ -516,6 +516,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
516
516
|
filter: true,
|
|
517
517
|
countDownloads: `path:"pytorch_model.bin"`,
|
|
518
518
|
},
|
|
519
|
+
flextab: {
|
|
520
|
+
prettyLabel: "FlexTab",
|
|
521
|
+
repoName: "FlexTab",
|
|
522
|
+
repoUrl: "https://github.com/SAP-samples/flextab",
|
|
523
|
+
countDownloads: `path_extension:"pt"`,
|
|
524
|
+
snippets: snippets.flextab,
|
|
525
|
+
},
|
|
519
526
|
fme: {
|
|
520
527
|
prettyLabel: "Full Model Emulation",
|
|
521
528
|
repoName: "Full Model Emulation",
|
|
@@ -1015,6 +1022,15 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
1015
1022
|
OR path:"open_clip_pytorch_model.bin"
|
|
1016
1023
|
OR path:"pytorch_model.bin"`,
|
|
1017
1024
|
},
|
|
1025
|
+
openasr: {
|
|
1026
|
+
prettyLabel: "OpenASR",
|
|
1027
|
+
repoName: "OpenASR",
|
|
1028
|
+
repoUrl: "https://github.com/QuintinShaw/openasr",
|
|
1029
|
+
docsUrl: "https://github.com/QuintinShaw/openasr/blob/main/docs/DOCS_INDEX.md",
|
|
1030
|
+
snippets: snippets.openasr,
|
|
1031
|
+
filter: false,
|
|
1032
|
+
countDownloads: `path_extension:"oasr"`,
|
|
1033
|
+
},
|
|
1018
1034
|
openpeerllm: {
|
|
1019
1035
|
prettyLabel: "OpenPeerLLM",
|
|
1020
1036
|
repoName: "OpenPeerLLM",
|
|
@@ -1511,6 +1527,12 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
1511
1527
|
repoUrl: "https://github.com/NX-AI/tirex",
|
|
1512
1528
|
countDownloads: `path_extension:"ckpt"`,
|
|
1513
1529
|
},
|
|
1530
|
+
"tirex-2": {
|
|
1531
|
+
prettyLabel: "TiRex-2",
|
|
1532
|
+
repoName: "TiRex-2",
|
|
1533
|
+
repoUrl: "https://github.com/NX-AI/tirex-2",
|
|
1534
|
+
countDownloads: `path:"model-config.yaml"`,
|
|
1535
|
+
},
|
|
1514
1536
|
torchgeo: {
|
|
1515
1537
|
prettyLabel: "TorchGeo",
|
|
1516
1538
|
repoName: "TorchGeo",
|