This codebase provides a machine learning model conversion and management pipeline designed to:
model_converter.py and helpers)Downloads models from Hugging Face using the API
Converts models to GGUF format (BF16) via llama.cpp scripts
Quantizes models into various formats:
Q4_K, IQ1_S, IQ3_XS, etc.Adds metadata to GGUF files for compatibility and traceability
Uploads quantized models to Hugging Face Hub (with chunking)
Cleans up disk/cache for efficient storage
Tracks model status in Redis:
Detects Mixture-of-Experts (MoE) models and applies special handling
Redis-based catalog storing:
Batch support via JSON lists
Web UI (gguf-catalog-editor/app.py) built with Flask for:
auto_build_new_models.py:
Watches llama.cpp GitHub repo for commits, analyzes them via local LLM, and updates the catalog with new modelsbuild_llama.py:
Automates building and patching of llama.cpp binariesdownload_convert.py: Download + convert to BF16 GGUFmake_files.py: Quantize, chunk, upload, update READMEupload-files.py: Upload GGUF files to Hugging Face and clean upadd_metadata_gguf.py: Insert/override metadata in GGUF filesupdate_readme.py: Populate README with quantization infotensor_list_builder.py: Suggest quant strategies per tensor/layerflowchart TD
A["Select Model"] --> B["Download from HF"]
B --> C["Convert to BF16 GGUF"]
C --> D["Quantize to Q4_K / Q6_K / etc."]
D --> E["Add Metadata & Update README"]
E --> F["Upload to HF (chunk if large)"]
F --> G["Update Redis Catalog"]
| Component | Link |
|---|---|
| Model Converter | GGUF Model Converter |
| Catalog Editor | GGUF Model Catalog Editor |
Python
96.2%
Shell
2.1%
HTML
1.7%
This codebase provides a machine learning model conversion and management pipeline designed to:
model_converter.py and helpers)Downloads models from Hugging Face using the API
Converts models to GGUF format (BF16) via llama.cpp scripts
Quantizes models into various formats:
Q4_K, IQ1_S, IQ3_XS, etc.Adds metadata to GGUF files for compatibility and traceability
Uploads quantized models to Hugging Face Hub (with chunking)
Cleans up disk/cache for efficient storage
Tracks model status in Redis:
Detects Mixture-of-Experts (MoE) models and applies special handling
Redis-based catalog storing:
Batch support via JSON lists
Web UI (gguf-catalog-editor/app.py) built with Flask for:
auto_build_new_models.py:
Watches llama.cpp GitHub repo for commits, analyzes them via local LLM, and updates the catalog with new modelsbuild_llama.py:
Automates building and patching of llama.cpp binariesdownload_convert.py: Download + convert to BF16 GGUFmake_files.py: Quantize, chunk, upload, update READMEupload-files.py: Upload GGUF files to Hugging Face and clean upadd_metadata_gguf.py: Insert/override metadata in GGUF filesupdate_readme.py: Populate README with quantization infotensor_list_builder.py: Suggest quant strategies per tensor/layerflowchart TD
A["Select Model"] --> B["Download from HF"]
B --> C["Convert to BF16 GGUF"]
C --> D["Quantize to Q4_K / Q6_K / etc."]
D --> E["Add Metadata & Update README"]
E --> F["Upload to HF (chunk if large)"]
F --> G["Update Redis Catalog"]
| Component | Link |
|---|---|
| Model Converter | GGUF Model Converter |
| Catalog Editor | GGUF Model Catalog Editor |
Python
96.2%
Shell
2.1%
HTML
1.7%