This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| DeepSeek-OCR-2 markdown extraction for olmocr-bench. | |
| Generates markdown files from images. For scoring, see: https://github.com/allenai/olmocr | |
| config: | |
| Prompt: "<image>\n<|grounding|>Convert the document to markdown." | |
| Repeats: 3 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import triton | |
| import triton.language as tl | |
| import torch | |
| import time | |
| import numpy as np | |
| @triton.jit | |
| def pi_kernel( | |
| total_ptr, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.