Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -8,6 +8,7 @@ base_model:
|
|
| 8 |
- Qwen/Qwen2.5-VL-7B-Instruct
|
| 9 |
library_name: transformers
|
| 10 |
new_version: allenai/olmOCR-7B-0825
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
<img alt="olmOCR Logo" src="https://huggingface.co/datasets/allenai/blog-images/resolve/main/olmocr/olmocr.png" width="242px" style="margin-left:'auto' margin-right:'auto' display:'block'">
|
|
@@ -70,7 +71,7 @@ messages = [
|
|
| 70 |
"type": "image",
|
| 71 |
"image": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/smolvlm_table.png",
|
| 72 |
},
|
| 73 |
-
{"type": "text", "text":
|
| 74 |
],
|
| 75 |
}
|
| 76 |
]
|
|
@@ -80,7 +81,6 @@ text = processor.apply_chat_template(
|
|
| 80 |
)
|
| 81 |
inputs = processor.apply_chat_template(
|
| 82 |
messages,
|
| 83 |
-
video_fps=1,
|
| 84 |
add_generation_prompt=True,
|
| 85 |
tokenize=True,
|
| 86 |
return_dict=True,
|
|
|
|
| 8 |
- Qwen/Qwen2.5-VL-7B-Instruct
|
| 9 |
library_name: transformers
|
| 10 |
new_version: allenai/olmOCR-7B-0825
|
| 11 |
+
pipeline_tag: image-text-to-text
|
| 12 |
---
|
| 13 |
|
| 14 |
<img alt="olmOCR Logo" src="https://huggingface.co/datasets/allenai/blog-images/resolve/main/olmocr/olmocr.png" width="242px" style="margin-left:'auto' margin-right:'auto' display:'block'">
|
|
|
|
| 71 |
"type": "image",
|
| 72 |
"image": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/smolvlm_table.png",
|
| 73 |
},
|
| 74 |
+
{"type": "text", "text": PROMPT},
|
| 75 |
],
|
| 76 |
}
|
| 77 |
]
|
|
|
|
| 81 |
)
|
| 82 |
inputs = processor.apply_chat_template(
|
| 83 |
messages,
|
|
|
|
| 84 |
add_generation_prompt=True,
|
| 85 |
tokenize=True,
|
| 86 |
return_dict=True,
|