Skip to content

Instantly share code, notes, and snippets.

View kn-neeraj's full-sized avatar

Neeraj Kumar kn-neeraj

View GitHub Profile
@kn-neeraj
kn-neeraj / finetune_qwen3_with_eval.py
Created December 31, 2025 07:56
Finetuning an LLM with SFT Appraoch using HuggingFace infrastructure.
#!/usr/bin/env python3
# /// script
# dependencies = [
# "trl>=0.12.0",
# "peft>=0.7.0",
# "transformers>=4.36.0",
# "accelerate>=0.24.0",
# "bitsandbytes>=0.41.0",
# "trackio",
# ]
@kn-neeraj
kn-neeraj / vision.py
Created March 30, 2024 18:32 — forked from RhetTbull/vision.py
Use Apple's Vision framework from Python to detect text in images
""" Use Apple's Vision Framework via PyObjC to detect text in images
To use:
python3 -m pip install pyobjc-core pyobjc-framework-Quartz pyobjc-framework-Vision wurlitzer
"""
import pathlib