Run this model with HF Jobs
Run lewtun/tiny-clip-test 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/lewtun/tiny-clip-test. 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/lewtun/tiny-clip-test 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 lewtun/tiny-clip-test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lewtun/tiny-clip-test with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="lewtun/tiny-clip-test") pipe( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png", candidate_labels=["animals", "humans", "landscape"], )# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("lewtun/tiny-clip-test") model = AutoModelForZeroShotImageClassification.from_pretrained("lewtun/tiny-clip-test", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Adding ONNX file of this model
#3
by RainbowPiBubbles - opened
Files changed (8)
- onnx/config.jsonAdded+49
- onnx/merges.txtAdded
- onnx/model.onnxAdded+3
- onnx/preprocessor_config.jsonAdded+28
- onnx/special_tokens_map.jsonAdded+30
- onnx/tokenizer.jsonAdded
- onnx/tokenizer_config.jsonAdded+38
- onnx/vocab.jsonAdded
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849{ "_attn_implementation_autoset": true, "architectures": [ "CLIPModel" ], "initializer_factor": 1.0, "logit_scale_init_value": 2.6592, "model_type": "clip", "projection_dim": 64, "text_config": { "attention_dropout": 0.0, "bos_token_id": 0, "dropout": 0.0, "eos_token_id": 2, "hidden_act": "quick_gelu", "hidden_size": 32, "initializer_factor": 1.0, "initializer_range": 0.02, "intermediate_size": 37, "layer_norm_eps": 1e-05, "max_position_embeddings": 77, "model_type": "clip_text_model", "num_attention_heads": 4, "num_hidden_layers": 5, "projection_dim": 512, "torch_dtype": "float32", "vocab_size": 49408 }, "torch_dtype": "float32", "transformers_version": "4.51.3", "vision_config": { "attention_dropout": 0.0, "dropout": 0.0, "hidden_act": "quick_gelu", "hidden_size": 32, "image_size": 30, "initializer_factor": 1.0, "initializer_range": 0.02, "intermediate_size": 37, "layer_norm_eps": 1e-05, "model_type": "clip_vision_model", "num_attention_heads": 4, "num_channels": 3, "num_hidden_layers": 5, "patch_size": 2, "projection_dim": 512, "torch_dtype": "float32" }}123version https://git-lfs.github.com/spec/v1oid sha256:7137c1f980d22f89c9fb00fe04db10afbbe92ea1e1ce61d33af2305a50d71b5bsize 686746812345678910111213141516171819202122232425262728{ "crop_size": { "height": 30, "width": 30 }, "do_center_crop": true, "do_convert_rgb": true, "do_normalize": true, "do_rescale": true, "do_resize": true, "image_mean": [ 0.48145466, 0.4578275, 0.40821073 ], "image_processor_type": "CLIPImageProcessor", "image_std": [ 0.26862954, 0.26130258, 0.27577711 ], "processor_class": "CLIPProcessor", "resample": 3, "rescale_factor": 0.00392156862745098, "size": { "shortest_edge": 30 }}123456789101112131415161718192021222324252627282930{ "bos_token": { "content": "<|startoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "eos_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "unk_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}1234567891011121314151617181920212223242526272829303132333435363738{ "add_prefix_space": false, "added_tokens_decoder": { "49406": { "content": "<|startoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "49407": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "bos_token": "<|startoftext|>", "clean_up_tokenization_spaces": false, "crop_size": 30, "do_lower_case": true, "eos_token": "<|endoftext|>", "errors": "replace", "extra_special_tokens": {}, "max_length": null, "model_max_length": 77, "pad_to_multiple_of": null, "pad_token": "<|endoftext|>", "pad_token_type_id": 0, "padding_side": "right", "processor_class": "CLIPProcessor", "size": 30, "tokenizer_class": "CLIPTokenizer", "unk_token": "<|endoftext|>"}onnx/config.jsonAdded+49
onnx/merges.txtAdded
onnx/model.onnxAdded+3
onnx/preprocessor_config.jsonAdded+28
onnx/special_tokens_map.jsonAdded+30
onnx/tokenizer.jsonAdded
onnx/tokenizer_config.jsonAdded+38
onnx/vocab.jsonAdded