Run this model with HF Jobs
Run ai-babai/tiny-random-Sam3Model-ONNX on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/ai-babai/tiny-random-Sam3Model-ONNX. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/ai-babai/tiny-random-Sam3Model-ONNX on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use ai-babai/tiny-random-Sam3Model-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use ai-babai/tiny-random-Sam3Model-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('feature-extraction', 'ai-babai/tiny-random-Sam3Model-ONNX');
Clarify the model card and move the author credit to the footer
Browse files8 unmodified lines91011121314156 unmodified lines2223248 unmodified lines# Tiny random SAM 3 ONNXThis seeded fixture exercises the Transformers.js SAM 3 text-prompted segmentation loader and cached feature path. The model was randomly initialized with `Sam3Config` and `Sam3Model` from [Transformers 5.24.1](https://github.com/huggingface/transformers/tree/e68083bdf4035ba6d75976a3b7ce15c98a61f278), using PyTorch 2.8.0 and seed 1800. All model weights are synthetic. Maksim Popkov prepared the fixture.The three FP32 ONNX opset 18 files total 373,025 bytes. The fixed batch size is 1, image size is 28 × 28, text length is 32, hidden size is 16, and the detector has 3 queries.6 unmodified linesThe included tokenizer recognizes `cat` and `truck`. These prompts produce distinguishable numeric outputs for regression tests. This fixture has no trained segmentation capability.Use `AutoProcessor.from_pretrained(modelId)` and `AutoModel.from_pretrained(modelId, { dtype: 'fp32' })` with a Transformers.js build that supports `Sam3Model`. The [export recipe](EXPORT.md) includes the script, pinned Python dependencies, and expected graph digests.8 unmodified lines910111213141516176 unmodified lines242526272829308 unmodified lines# Tiny random SAM 3 ONNXThis small SAM 3 model is used in Transformers.js tests to check that the model loads and that reusing image or text features produces the same outputs as a fresh run.The weights are randomly initialized with `Sam3Config` and `Sam3Model` from [Transformers 5.24.1](https://github.com/huggingface/transformers/tree/e68083bdf4035ba6d75976a3b7ce15c98a61f278), using PyTorch 2.8.0 and seed 1800.The three FP32 ONNX opset 18 files total 373,025 bytes. The fixed batch size is 1, image size is 28 × 28, text length is 32, hidden size is 16, and the detector has 3 queries.6 unmodified linesThe included tokenizer recognizes `cat` and `truck`. These prompts produce distinguishable numeric outputs for regression tests. This fixture has no trained segmentation capability.Use `AutoProcessor.from_pretrained(modelId)` and `AutoModel.from_pretrained(modelId, { dtype: 'fp32' })` with a Transformers.js build that supports `Sam3Model`. The [export recipe](EXPORT.md) includes the script, pinned Python dependencies, and expected graph digests.---Test fixture by [Maksim Popkov](https://huggingface.co/ai-babai).
README.md+7-1