How to use gogoduan/MatPlotCode 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="gogoduan/MatPlotCode")
# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("gogoduan/MatPlotCode") model = AutoModelForImageTextToText.from_pretrained("gogoduan/MatPlotCode")
6e6548a c1f723b 6e6548a
1
2
3
4
5
6
7
8
9
10
11
12
13
{ "attn_implementation": "flash_attention_2", "bos_token_id": 151643, "do_sample": false, "eos_token_id": [ 151645, 151643 ], "pad_token_id": 151643, "repetition_penalty": 1.05, "transformers_version": "4.50.0" }