No description
Find a file
2025-09-28 18:24:46 +02:00
src extension id ? 2025-09-24 22:40:17 +02:00
.gitignore added .gitignore 2025-09-28 18:24:46 +02:00
Justfile Initial commits 1/2 2025-08-05 17:12:44 +02:00
README.md Initial commits 1/2 2025-08-05 17:12:44 +02:00

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

  1. Download or clone this repository
  2. Open Chrome and go to chrome://extensions/
  3. Enable "Developer mode" in the top right
  4. Click "Load unpacked" and select the extension folder
  5. The extension will now be active on HuggingFace pages

Firefox

  1. Download or clone this repository
  2. Open Firefox and go to about:debugging
  3. Click "This Firefox" → "Load Temporary Add-on"
  4. Select the manifest.json file
  5. The extension will now be active on HuggingFace pages

Usage

  1. Navigate to any HuggingFace model page (e.g., huggingface.co/microsoft/DialoGPT-medium)
  2. The extension widget will appear in the top-right corner
  3. Select a quantization from the dropdown (automatically detected) or enter a custom one
  4. Click "📋 Copy" to copy the generated URL to your clipboard
  5. 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

Techn