Downloads · 30 days
21
38% of all-time downloads
Perflow-Shuai/nvila_lite_2b_dev-model
nvila_lite_2b_dev-model is a machine learning model from Perflow-Shuai. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc.
todos: check numerical output same as original VILA impl check training stablitiy savepretrained()
Downloads · 30 days
21
38% of all-time downloads
All-time downloads
56
Public
Repo size
4 GB
Likes
0
Public
Click a slice to open those files.
.safetensors4 GB · 100%
From the Hugging Face model README
todos:
already finished
Remote model loading example
from transformers import AutoConfig, AutoModel
from termcolor import colored
model_path = "Efficient-Large-Model/nvila_lite_3b_dev"
print("main_dev.py, loading from ", model_path)
# config = AutoConfig.from_pretrained(model_path, trust_remote_code=True)
# model = AutoModel.from_config(config, trust_remote_code=True)
model = AutoModel.from_pretrained(model_path, trust_remote_code=True, device_map="auto")
res = model.generate_content([
"how are you today?"
])
print(colored(res, "cyan", attrs=["bold"]))
print("---" * 40)
import PIL.Image
response = model.generate_content([
PIL.Image.open("inference_test/test_data/caption_meat.jpeg"),
"describe the image?"
])
print(colored(response, "cyan", attrs=["bold"]))