Instructions to use damerajee/GPT-Vision with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use damerajee/GPT-Vision with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import GPTVision model = GPTVision.from_pretrained("damerajee/GPT-Vision", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update modeling_gpt2vision.py
Browse files- modeling_gpt2vision.py +1 -1
modeling_gpt2vision.py
CHANGED
|
@@ -7,7 +7,7 @@ from .vision_encoder import VisionEncoder
|
|
| 7 |
from .configuration_gpt2vision import GPT2VisionConfig
|
| 8 |
from .modeling_gpt2 import GPT2LMHeadModel
|
| 9 |
|
| 10 |
-
class
|
| 11 |
config_class = GPT2VisionConfig
|
| 12 |
|
| 13 |
def __init__(self, config):
|
|
|
|
| 7 |
from .configuration_gpt2vision import GPT2VisionConfig
|
| 8 |
from .modeling_gpt2 import GPT2LMHeadModel
|
| 9 |
|
| 10 |
+
class GPT2Vision(PreTrainedModel):
|
| 11 |
config_class = GPT2VisionConfig
|
| 12 |
|
| 13 |
def __init__(self, config):
|