Instructions to use MAGAer13/mplug-owl-llama-7b-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MAGAer13/mplug-owl-llama-7b-ft 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="MAGAer13/mplug-owl-llama-7b-ft")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("MAGAer13/mplug-owl-llama-7b-ft", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +2 -2
config.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"_commit_hash": null,
|
| 3 |
-
"_name_or_path": "/
|
| 4 |
"architectures": [
|
| 5 |
"MplugOwlForConditionalGeneration"
|
| 6 |
],
|
|
@@ -203,7 +203,7 @@
|
|
| 203 |
"1": "LABEL_1"
|
| 204 |
},
|
| 205 |
"initializer_range": 0.02,
|
| 206 |
-
"intermediate_size":
|
| 207 |
"is_decoder": false,
|
| 208 |
"is_encoder_decoder": false,
|
| 209 |
"label2id": {
|
|
|
|
| 1 |
{
|
| 2 |
"_commit_hash": null,
|
| 3 |
+
"_name_or_path": "/mplug-owl-llama-7b-pt/",
|
| 4 |
"architectures": [
|
| 5 |
"MplugOwlForConditionalGeneration"
|
| 6 |
],
|
|
|
|
| 203 |
"1": "LABEL_1"
|
| 204 |
},
|
| 205 |
"initializer_range": 0.02,
|
| 206 |
+
"intermediate_size": 2816,
|
| 207 |
"is_decoder": false,
|
| 208 |
"is_encoder_decoder": false,
|
| 209 |
"label2id": {
|