nota-ai / phiva-4b-hf

huggingface.co
Total runs: 2
24-hour runs: 0
7-day runs: 0
30-day runs: 1
Model's Last Updated: October 04 2024
image-text-to-text

Introduction of phiva-4b-hf

Model Details of phiva-4b-hf

Usage
import requests
from PIL import Image

import torch
from transformers import AutoProcessor, LlavaForConditionalGeneration

model_id = "nota-ai/phiva-4b-hf"

prompt = "USER: <image>\nWhat are these?\nASSISTANT:"
image_file = "http://images.cocodataset.org/val2017/000000039769.jpg"

model = LlavaForConditionalGeneration.from_pretrained(
    model_id, 
    torch_dtype=torch.float16, 
    low_cpu_mem_usage=True, 
    attn_implementation="eager"
).to(0)

processor = AutoProcessor.from_pretrained(model_id)


raw_image = Image.open(requests.get(image_file, stream=True).raw)
inputs = processor(prompt, raw_image, return_tensors='pt').to(0, torch.float16)

output = model.generate(**inputs, max_new_tokens=200, do_sample=False)
print(processor.decode(output[0][inputs['input_ids'].shape[-1]:], skip_special_tokens=True))

Runs of nota-ai phiva-4b-hf on huggingface.co

2
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
1
30-day runs

More Information About phiva-4b-hf huggingface.co Model

phiva-4b-hf huggingface.co

phiva-4b-hf huggingface.co is an AI model on huggingface.co that provides phiva-4b-hf's model effect (), which can be used instantly with this nota-ai phiva-4b-hf model. huggingface.co supports a free trial of the phiva-4b-hf model, and also provides paid use of the phiva-4b-hf. Support call phiva-4b-hf model through api, including Node.js, Python, http.

phiva-4b-hf huggingface.co Url

https://huggingface.co/nota-ai/phiva-4b-hf

nota-ai phiva-4b-hf online free

phiva-4b-hf huggingface.co is an online trial and call api platform, which integrates phiva-4b-hf's modeling effects, including api services, and provides a free online trial of phiva-4b-hf, you can try phiva-4b-hf online for free by clicking the link below.

nota-ai phiva-4b-hf online free url in huggingface.co:

https://huggingface.co/nota-ai/phiva-4b-hf

phiva-4b-hf install

phiva-4b-hf is an open source model from GitHub that offers a free installation service, and any user can find phiva-4b-hf on GitHub to install. At the same time, huggingface.co provides the effect of phiva-4b-hf install, users can directly use phiva-4b-hf installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

phiva-4b-hf install url in huggingface.co:

https://huggingface.co/nota-ai/phiva-4b-hf

Url of phiva-4b-hf

phiva-4b-hf huggingface.co Url

Provider of phiva-4b-hf huggingface.co

nota-ai
ORGANIZATIONS

Other API from nota-ai

huggingface.co

Total runs: 1.8K
Run Growth: 740
Growth Rate: 41.67%
Updated:November 17 2023
huggingface.co

Total runs: 908
Run Growth: -523
Growth Rate: -57.60%
Updated:November 17 2023
huggingface.co

Total runs: 122
Run Growth: 97
Growth Rate: 79.51%
Updated:February 25 2026
huggingface.co

Total runs: 50
Run Growth: 14
Growth Rate: 28.00%
Updated:November 17 2023