Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
🤝
Open to Collab
Harshit Kumar Gupta
PRO
harshitkgupta
1
3
Follow
quantid's profile picture
joao-silva-1's profile picture
nitya-gupta's profile picture
6 followers
·
16 following
https://www.harshitgupta.info/
harshit_k_gupta
harshitkgupta
harshitgupta92
harshitkgupta.bsky.social
AI & ML interests
None yet
Recent Activity
replied
to
their
post
about 11 hours ago
Fine-tuned Qwen 2.5 (0.5B → 3B) on real coding-agent traces, 10 controlled runs, one 16GB Mac. Compared PyTorch MPS vs. Apple MLX for local LoRA SFT — and the honest answer is "it depends on what you're optimizing for": • PyTorch MPS: 2.2x–5.7x faster raw throughput, but hits a hard memory wall — can't load a 3B model in FP16 on 16GB. • Apple MLX: 4-bit QLoRA fits 3B+ models with almost flat memory scaling as context grows (+109 MB going from 1k→4k tokens). • 4-bit quantization doesn't cost you convergence — eval loss tracks closely across backends. • The bigger surprise: most of MLX's slowdown isn't the 4-bit dequant tax. Two of the 10 runs went unquantized to isolate it — dequant only explains 1.07x–1.4x of the gap. A ~4.1–4.6x framework-level gap remains either way. All 10 LoRA adapters + Trackio logs are public so the numbers are checkable, not just claimed. Full writeup: https://huggingface.co/blog/harshitkgupta/fine-tuning-coding-agents-on-mac-pytorch-mps-mlx
reacted
to
their
post
with 🚀
3 days ago
Fine-tuned Qwen 2.5 (0.5B → 3B) on real coding-agent traces, 10 controlled runs, one 16GB Mac. Compared PyTorch MPS vs. Apple MLX for local LoRA SFT — and the honest answer is "it depends on what you're optimizing for": • PyTorch MPS: 2.2x–5.7x faster raw throughput, but hits a hard memory wall — can't load a 3B model in FP16 on 16GB. • Apple MLX: 4-bit QLoRA fits 3B+ models with almost flat memory scaling as context grows (+109 MB going from 1k→4k tokens). • 4-bit quantization doesn't cost you convergence — eval loss tracks closely across backends. • The bigger surprise: most of MLX's slowdown isn't the 4-bit dequant tax. Two of the 10 runs went unquantized to isolate it — dequant only explains 1.07x–1.4x of the gap. A ~4.1–4.6x framework-level gap remains either way. All 10 LoRA adapters + Trackio logs are public so the numbers are checkable, not just claimed. Full writeup: https://huggingface.co/blog/harshitkgupta/fine-tuning-coding-agents-on-mac-pytorch-mps-mlx
posted
an
update
3 days ago
Fine-tuned Qwen 2.5 (0.5B → 3B) on real coding-agent traces, 10 controlled runs, one 16GB Mac. Compared PyTorch MPS vs. Apple MLX for local LoRA SFT — and the honest answer is "it depends on what you're optimizing for": • PyTorch MPS: 2.2x–5.7x faster raw throughput, but hits a hard memory wall — can't load a 3B model in FP16 on 16GB. • Apple MLX: 4-bit QLoRA fits 3B+ models with almost flat memory scaling as context grows (+109 MB going from 1k→4k tokens). • 4-bit quantization doesn't cost you convergence — eval loss tracks closely across backends. • The bigger surprise: most of MLX's slowdown isn't the 4-bit dequant tax. Two of the 10 runs went unquantized to isolate it — dequant only explains 1.07x–1.4x of the gap. A ~4.1–4.6x framework-level gap remains either way. All 10 LoRA adapters + Trackio logs are public so the numbers are checkable, not just claimed. Full writeup: https://huggingface.co/blog/harshitkgupta/fine-tuning-coding-agents-on-mac-pytorch-mps-mlx
View all activity
Organizations
harshitkgupta
's models
11
Sort: Recently updated
harshitkgupta/qwen-3b-mlx-2k-lora
Text Generation
•
Updated
3 days ago
harshitkgupta/qwen-1.5b-mps-4k-lora
Text Generation
•
Updated
3 days ago
•
6
harshitkgupta/qwen-1.5b-mps-2k-lora
Text Generation
•
Updated
3 days ago
•
5
harshitkgupta/qwen-1.5b-mlx16-2k-lora
Text Generation
•
Updated
3 days ago
harshitkgupta/qwen-1.5b-mlx-4k-lora
Text Generation
•
Updated
3 days ago
harshitkgupta/qwen-1.5b-mlx-2k-lora
Text Generation
•
Updated
3 days ago
harshitkgupta/qwen-1.5b-mlx-1k-lora
Text Generation
•
Updated
3 days ago
harshitkgupta/qwen-0.5b-mps-2k-lora
Text Generation
•
Updated
3 days ago
•
9
harshitkgupta/qwen-0.5b-mlx16-2k-lora
Text Generation
•
Updated
3 days ago
harshitkgupta/qwen-0.5b-mlx-2k-lora
Text Generation
•
Updated
3 days ago
harshitkgupta/img2gray-metal
Updated
Jan 4