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 +2 -2
config.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
-
"
|
| 4 |
],
|
| 5 |
"decoder": {
|
| 6 |
"_name_or_path": "gpt2",
|
|
@@ -306,7 +306,7 @@
|
|
| 306 |
"eos_token_id": 13,
|
| 307 |
"is_encoder_decoder": true,
|
| 308 |
"max_length": 143,
|
| 309 |
-
"model_type": "
|
| 310 |
"pad_token_id": 0,
|
| 311 |
"tie_word_embeddings": false,
|
| 312 |
"torch_dtype": "float32",
|
|
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
+
"SmallCap"
|
| 4 |
],
|
| 5 |
"decoder": {
|
| 6 |
"_name_or_path": "gpt2",
|
|
|
|
| 306 |
"eos_token_id": 13,
|
| 307 |
"is_encoder_decoder": true,
|
| 308 |
"max_length": 143,
|
| 309 |
+
"model_type": "smallcap",
|
| 310 |
"pad_token_id": 0,
|
| 311 |
"tie_word_embeddings": false,
|
| 312 |
"torch_dtype": "float32",
|