@huggingface/tasks 0.21.55 → 0.21.57
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-amd.d.ts.map +1 -1
- package/dist/commonjs/hardware-amd.js +48 -0
- package/dist/commonjs/hardware-nvidia.d.ts +1 -0
- package/dist/commonjs/hardware-nvidia.d.ts.map +1 -1
- package/dist/commonjs/hardware-nvidia.js +122 -0
- 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 +25 -7
- package/dist/commonjs/model-libraries.d.ts +18 -1
- package/dist/commonjs/model-libraries.d.ts.map +1 -1
- package/dist/commonjs/model-libraries.js +17 -0
- package/dist/esm/hardware-amd.d.ts.map +1 -1
- package/dist/esm/hardware-amd.js +48 -0
- package/dist/esm/hardware-nvidia.d.ts +1 -0
- package/dist/esm/hardware-nvidia.d.ts.map +1 -1
- package/dist/esm/hardware-nvidia.js +122 -0
- 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 +20 -4
- package/dist/esm/model-libraries.d.ts +18 -1
- package/dist/esm/model-libraries.d.ts.map +1 -1
- package/dist/esm/model-libraries.js +17 -0
- package/package.json +1 -1
- package/src/hardware-amd.ts +48 -0
- package/src/hardware-nvidia.ts +122 -0
- package/src/model-libraries-snippets.ts +22 -4
- package/src/model-libraries.ts +17 -0
|
@@ -18,6 +18,16 @@ const isValidIdentifier = (str: string): boolean => /^[A-Za-z_]\w*$/.test(str);
|
|
|
18
18
|
|
|
19
19
|
//#region snippets
|
|
20
20
|
|
|
21
|
+
export const aadyaNeural = (model: ModelData): string[] => [
|
|
22
|
+
`# Install from https://github.com/manasdutta04/aadya (train extras: torch)
|
|
23
|
+
from huggingface_hub import snapshot_download
|
|
24
|
+
from aadya_neural.torch_forecaster import AadyaM1Forecaster
|
|
25
|
+
|
|
26
|
+
weights = snapshot_download("${model.id}")
|
|
27
|
+
model = AadyaM1Forecaster(weights)
|
|
28
|
+
pmf = model.forecast([28, 30, 27], elapsed=0)`,
|
|
29
|
+
];
|
|
30
|
+
|
|
21
31
|
export const adapters = (model: ModelData): string[] => [
|
|
22
32
|
`from adapters import AutoAdapterModel
|
|
23
33
|
|
|
@@ -56,6 +66,14 @@ export const araclip = (model: ModelData): string[] => [
|
|
|
56
66
|
model = AraClip.from_pretrained("${model.id}")`,
|
|
57
67
|
];
|
|
58
68
|
|
|
69
|
+
export const asimov = (model: ModelData): string[] => [
|
|
70
|
+
`# Run the policy in a browser simulation of the Asimov 1 humanoid (no GPU needed)
|
|
71
|
+
git clone https://github.com/menloresearch/humanoid-policy-viewer
|
|
72
|
+
cd humanoid-policy-viewer
|
|
73
|
+
npm install
|
|
74
|
+
npm run hf ${model.id}`,
|
|
75
|
+
];
|
|
76
|
+
|
|
59
77
|
export const asteroid = (model: ModelData): string[] => [
|
|
60
78
|
`from asteroid.models import BaseModel
|
|
61
79
|
|
|
@@ -874,11 +892,11 @@ print(f'Accuracy {accuracy_score(y_test, predictions):.2%}')
|
|
|
874
892
|
};
|
|
875
893
|
|
|
876
894
|
export const gaussianformer = (model: ModelData): string[] => [
|
|
877
|
-
`#
|
|
878
|
-
|
|
879
|
-
from gaussianformer.pipelines.rendering_pipeline import GaussianFormerRenderingPipeline
|
|
895
|
+
`# pip install "gaussianformer @ git+https://github.com/SVLwoof/gaussianformer"
|
|
896
|
+
from gaussianformer import GaussianFormerRenderingPipeline, load_ply
|
|
880
897
|
|
|
881
|
-
pipeline = GaussianFormerRenderingPipeline.from_pretrained("${model.id}")
|
|
898
|
+
pipeline = GaussianFormerRenderingPipeline.from_pretrained("${model.id}").to("cuda")
|
|
899
|
+
gaussians = load_ply("object.ply") # 3D Gaussian Splatting PLY -> [N, 14]`,
|
|
882
900
|
];
|
|
883
901
|
|
|
884
902
|
export const gliner = (model: ModelData): string[] => [
|
package/src/model-libraries.ts
CHANGED
|
@@ -58,6 +58,15 @@ export interface LibraryUiElement {
|
|
|
58
58
|
*/
|
|
59
59
|
|
|
60
60
|
export const MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
61
|
+
"aadya-neural": {
|
|
62
|
+
prettyLabel: "aadya-neural",
|
|
63
|
+
repoName: "aadya",
|
|
64
|
+
repoUrl: "https://github.com/manasdutta04/aadya",
|
|
65
|
+
docsUrl: "https://github.com/manasdutta04/aadya/blob/main/train/README.md",
|
|
66
|
+
snippets: snippets.aadyaNeural,
|
|
67
|
+
filter: false,
|
|
68
|
+
countDownloads: `path:"model.safetensors" OR path:"pytorch_model.bin"`,
|
|
69
|
+
},
|
|
61
70
|
acestep: {
|
|
62
71
|
prettyLabel: "ACE-Step",
|
|
63
72
|
repoName: "ACE-Step",
|
|
@@ -106,6 +115,14 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
|
106
115
|
filter: false,
|
|
107
116
|
snippets: snippets.araclip,
|
|
108
117
|
},
|
|
118
|
+
asimov: {
|
|
119
|
+
prettyLabel: "Asimov",
|
|
120
|
+
repoName: "Asimov",
|
|
121
|
+
repoUrl: "https://github.com/menloresearch/humanoid-policy-viewer",
|
|
122
|
+
snippets: snippets.asimov,
|
|
123
|
+
filter: false,
|
|
124
|
+
countDownloads: `path:"env.yaml"`,
|
|
125
|
+
},
|
|
109
126
|
"aviation-ner": {
|
|
110
127
|
prettyLabel: "Aviation NER",
|
|
111
128
|
repoName: "Aviation NER",
|