Instructions to use hf-internal-testing/tiny-random-Kosmos2Model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-Kosmos2Model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="hf-internal-testing/tiny-random-Kosmos2Model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-random-Kosmos2Model") model = AutoModel.from_pretrained("hf-internal-testing/tiny-random-Kosmos2Model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download model.safetensors from hf-internal-testing/tiny-random-Kosmos2Model: direct link, hf CLI and curl.
- Browser
- Download file 444 kB
-
https://huggingface.co/hf-internal-testing/tiny-random-Kosmos2Model/resolve/main/model.safetensors
- Command line
-
hf download hf://hf-internal-testing/tiny-random-Kosmos2Model/model.safetensors
-
curl -L -o model.safetensors https://huggingface.co/hf-internal-testing/tiny-random-Kosmos2Model/resolve/main/model.safetensors
444 kB
- Xet hash:
- 1b4c2ca196f3dee4372d47182582aa923797f27e120872ee8cc10084c1d14503
- Size of remote file:
- 444 kB
- SHA256:
- 22f0191afe636c39a03a0c31cee3db82f51bade56b77e642369882da6ed1b41d
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.