Skip to content

Instantly share code, notes, and snippets.

View staghado's full-sized avatar
🎯
Focusing

Said Taghadouini staghado

🎯
Focusing
  • LightOn
  • France
  • 02:02 (UTC +01:00)
  • X @staghado
View GitHub Profile
@staghado
staghado / deepseek_ocr2_benchmark.py
Created January 27, 2026 14:47
Run DeepSeek-OCR-2 on OlmOCR-bench
#!/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
@staghado
staghado / modernbert-flexattention.ipynb
Created December 27, 2024 11:37
modernbert-flexattention.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@staghado
staghado / estimate_pi.py
Created October 6, 2024 21:44
Pi estimation in Triton because why not
import triton
import triton.language as tl
import torch
import time
import numpy as np
@triton.jit
def pi_kernel(
total_ptr,
@staghado
staghado / speculative_decoding_implementation.ipynb
Created January 26, 2024 19:41
Speculative_Decoding_Implementation.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.