The open source implementation of "NeVA: NeMo Vision and Language Assistant"
17
stars
1
commits
Python
primary language
Aug 26, 2023
updated
NeVA is a powerful and versatile Visual Question Answering model by NVIDIA. Neva builds upon the open-source LLaMA model, integrating it with an NVIDIA-trained GPT model to offer state-of-the-art performance.
To integrate NeVA into your Python environment, you can install it via pip:
pip install nevax
import torch
from nevax import Neva
#usage
img = torch.randn(1, 3, 256, 256)
caption_tokens = torch.randint(0, 4)
model = Neva()
output = model(img, caption_tokens)
At a high level, NeVA utilizes a frozen Hugging Face CLIP model to encode images. These encoded images are projected to text embedding dimensions, concatenated with the embeddings of the given prompt, and subsequently passed through the language model. The training process comprises two main stages:
Pretraining Dataset:
Finetuning Dataset:
This project is licensed under the MIT License license.
1 commits
Python
100.0%
The open source implementation of "NeVA: NeMo Vision and Language Assistant"
17
stars
1
commits
Python
primary language
Aug 26, 2023
updated
NeVA is a powerful and versatile Visual Question Answering model by NVIDIA. Neva builds upon the open-source LLaMA model, integrating it with an NVIDIA-trained GPT model to offer state-of-the-art performance.
To integrate NeVA into your Python environment, you can install it via pip:
pip install nevax
import torch
from nevax import Neva
#usage
img = torch.randn(1, 3, 256, 256)
caption_tokens = torch.randint(0, 4)
model = Neva()
output = model(img, caption_tokens)
At a high level, NeVA utilizes a frozen Hugging Face CLIP model to encode images. These encoded images are projected to text embedding dimensions, concatenated with the embeddings of the given prompt, and subsequently passed through the language model. The training process comprises two main stages:
Pretraining Dataset:
Finetuning Dataset:
This project is licensed under the MIT License license.
1 commits
Python
100.0%