Run this model with HF Jobs
Run gallerywise/coreml-embeddings 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/gallerywise/coreml-embeddings. 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/gallerywise/coreml-embeddings 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 gallerywise/coreml-embeddings with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use gallerywise/coreml-embeddings with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("gallerywise/coreml-embeddings") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Adrian Dankiv commited on
Commit ·
1d84a45
1
Parent(s): fd9c2d8
Add Core ML SigLIP + MiniLM fp16 artifacts (AIB-119)
Browse filesFiles changed (5)
- README.md+44
- siglip_logit_params.jsonAdded+1
- siglip_text.mlpackage.zipAdded+3
- siglip_vision.mlpackage.zipAdded+3
- text_embed.mlpackage.zipAdded+3
123---license: apache-2.0---1234567891011121314151617181920212223242526272829303132333435363738394041424344454647---license: apache-2.0library_name: coremltags:- core-ml- siglip- sentence-transformers- embeddings- on-devicebase_model:- google/siglip-base-patch16-384- sentence-transformers/all-MiniLM-L6-v2---# gallerywise/coreml-embeddingsCore ML (`.mlpackage`, fp16, `cpu_and_gpu`) conversions of the embedding backbonesused by the on-device pipeline in **gallerywise.ai**. Converted with[`scripts/coreml/convert_embeddings.py`](https://github.com/ADR-007/aibom-macos)(AIB-72 / AIB-119); loaded at runtime through pyobjc Core ML with **no torch** inthe shipped app.## Contents| File | Source model | Notes ||------|--------------|-------|| `siglip_vision.mlpackage.zip` | `google/siglip-base-patch16-384` | vision tower, 768-D || `siglip_text.mlpackage.zip` | `google/siglip-base-patch16-384` | text tower, 768-D || `text_embed.mlpackage.zip` | `sentence-transformers/all-MiniLM-L6-v2` | 384-D; mean-pool + L2-normalize baked into the graph (fixed seq-len 64) || `siglip_logit_params.json` | — | SigLIP logit scale/bias |The `.mlpackage` bundles are directories, so they are hosted **zipped** (eacharchive contains exactly one top-level `*.mlpackage/` entry). The client fetches,sha256-verifies, and unzips them on first launch.## License & attributionApache-2.0, inherited from both source models([SigLIP](https://huggingface.co/google/siglip-base-patch16-384),[all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2)),which are themselves Apache-2.0. These are format conversions (Core ML) of thoseweights — no retraining or fine-tuning.## Intended useThe gallerywise.ai macOS app's embedding stages (semantic search, zero-shot tags,near-duplicate / moment grouping). Not a general-purpose endpoint.
1{"logit_scale": 117.7812271118164, "logit_bias": -12.933440208435059}123version https://git-lfs.github.com/spec/v1oid sha256:b544809cf3afd8959f9947a31751625407655d202d5845c278481773c9317d9dsize 203973991123version https://git-lfs.github.com/spec/v1oid sha256:5a6423be29a8fe14b485af43c08aea767c712c5980d903452f3afa7f3e569930size 170899283123version https://git-lfs.github.com/spec/v1oid sha256:405eb37ddf2dc22743599e19b42c2471af2bd4f46e1c4f3cd7561f7f2830c8besize 41323955README.md+44
siglip_logit_params.jsonAdded+1
siglip_text.mlpackage.zipAdded+3
siglip_vision.mlpackage.zipAdded+3
text_embed.mlpackage.zipAdded+3