saiboft

Results issues of saiboft

import torch from transformers import AutoTokenizer, ChineseCLIPTextModel tokenizer = AutoTokenizer.from_pretrained("OFA-Sys/chinese-clip-vit-large-patch14", max_length=77) model = ChineseCLIPTextModel.from_pretrained("OFA-Sys/chinese-clip-vit-large-patch14", torch_dtype=torch.bfloat16) model.eval().requires_grad_(False) inputs = tokenizer("一只猴子", truncation=True, max_length=77, return_length=False, return_overflowing_tokens=False, padding="max_length", return_tensors="pt") outputs = model(input_ids=inputs["input_ids"], attention_mask=None, output_hidden_states=False)...

Could you provide the average running times of different models? For individual users, choosing a model with a moderate runtime means they have to download all the models and compare...