Instructions to use Yova/SmallCap7M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Yova/SmallCap7M with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("image-to-text", model="Yova/SmallCap7M")# Load model directly from transformers import SmallCap model = SmallCap.from_pretrained("Yova/SmallCap7M", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
| 7 |
"activation_function": "gelu_new",
|
| 8 |
"add_cross_attention": true,
|
| 9 |
"architectures": [
|
| 10 |
-
"
|
| 11 |
],
|
| 12 |
"attn_pdrop": 0.1,
|
| 13 |
"bad_words_ids": null,
|
|
|
|
| 7 |
"activation_function": "gelu_new",
|
| 8 |
"add_cross_attention": true,
|
| 9 |
"architectures": [
|
| 10 |
+
"ThisGPT2LMHeadModel"
|
| 11 |
],
|
| 12 |
"attn_pdrop": 0.1,
|
| 13 |
"bad_words_ids": null,
|