No description
| src | ||
| .gitignore | ||
| Justfile | ||
| README.md | ||
HuggingFace URL Generator Extension
A Chrome/Firefox browser extension that automatically generates
hf.co/{username}/{repository}:{quantization} URLs from HuggingFace model pages
and detects available quantizations.
Features
- 🔍 Auto-detection: Automatically detects the model username and repository from the current HuggingFace page
- 📊 Quantization Detection: Scans the page for available quantizations
from:
- File listings (GGUF, GPTQ, AWQ, etc.)
- Model tags and badges
- README/model card content
- 📋 One-click Copy: Copy generated URLs directly to clipboard
- 🎨 Clean UI: Floating widget that doesn't interfere with the page
- 🔄 Real-time Updates: Refreshes automatically when navigating between models
- 📱 Responsive: Works on desktop and mobile browsers
Installation
Chrome/Edge
- Download or clone this repository
- Open Chrome and go to
chrome://extensions/ - Enable "Developer mode" in the top right
- Click "Load unpacked" and select the extension folder
- The extension will now be active on HuggingFace pages
Firefox
- Download or clone this repository
- Open Firefox and go to
about:debugging - Click "This Firefox" → "Load Temporary Add-on"
- Select the
manifest.jsonfile - The extension will now be active on HuggingFace pages
Usage
- Navigate to any HuggingFace model page (e.g.,
huggingface.co/microsoft/DialoGPT-medium) - The extension widget will appear in the top-right corner
- Select a quantization from the dropdown (automatically detected) or enter a custom one
- Click "📋 Copy" to copy the generated URL to your clipboard
- Use the URL format:
hf.co/{username}/{repository}:{quantization}
Supported Quantization Formats
The extension automatically detects these quantization types:
- GGUF/GGML:
q4_0,q5_1,q8_0, etc. - Integer quantization:
int4,int8, etc. - Floating point:
fp16,fp32, etc. - Bit quantization:
4bit,8bit, etc. - AWQ: Activation-aware Weight Quantization
- GPTQ: GPT Quantization
- EXL2: ExLlama v2 format
- BNB: Bitsandbytes quantization
- NF4: NormalFloat 4-bit
File Structure
hf-extension/
├── manifest.json # Extension configuration
├── content.js # Main extension logic
├── styles.css # Extension UI styling
├── README.md # This file
└── icons/ # Extension icons (optional)
├── icon16.png
├── icon48.png
└── icon128.png