Instructions to use arampacha/clip-test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use arampacha/clip-test with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="arampacha/clip-test") pipe( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png", candidate_labels=["animals", "humans", "landscape"], )# Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("arampacha/clip-test") model = AutoModelForZeroShotImageClassification.from_pretrained("arampacha/clip-test", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,071 Bytes
bcb7259 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | {
"best_metric": null,
"best_model_checkpoint": null,
"epoch": 3.0,
"global_step": 411,
"is_hyper_param_search": false,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 0.73,
"learning_rate": 4.21409214092141e-05,
"loss": 1.6779,
"step": 100
},
{
"epoch": 1.46,
"learning_rate": 2.859078590785908e-05,
"loss": 1.0913,
"step": 200
},
{
"epoch": 2.19,
"learning_rate": 1.5040650406504067e-05,
"loss": 0.7497,
"step": 300
},
{
"epoch": 2.92,
"learning_rate": 1.4905149051490515e-06,
"loss": 0.4489,
"step": 400
},
{
"epoch": 3.0,
"step": 411,
"total_flos": 633388750422912.0,
"train_loss": 0.9768911893060318,
"train_runtime": 400.4654,
"train_samples_per_second": 65.429,
"train_steps_per_second": 1.026
}
],
"max_steps": 411,
"num_train_epochs": 3,
"total_flos": 633388750422912.0,
"trial_name": null,
"trial_params": null
}
|