ggml-org/convert
Shell pipeline for GGUF conversion and Hugging Face publishing
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
This is a Shell-orchestrated conversion and publishing pipeline upstream of inference, not a GGUF runtime. convert.sh selects model entries under models/, checks source revisions, and coordinates downloads, conversion via llama.cpp, model card updates, and publication to Hugging Face. Per-model config.sh files provide a configuration point: setting COLLECTION associates publishing with an existing collection.
The Python stack pins huggingface_hub[hf_xet]==1.28.0, transformers==5.13.1, and mistral-common==1.12.0. It also lists SentencePiece in the range >=0.1.98,<0.3.0, protobuf>=4.25.0 for a SentencePiece protobuf import in ergo.py, and unpinned torch, with PyTorch’s CPU wheel index listed as an extra package index.
Key Capabilities & Differentiators
The CLI handles a full catalog, a single configured model via --one, or a filtered subset via --filter; ^gemma is an example filter. Published GGUF outputs include Gemma 4, Qwen3.6, and GPT-OSS examples. These establish concrete conversion coverage, not universal compatibility with arbitrary Hugging Face models. Check models/ for the relevant entry before planning a batch.
Weight conversion runs only if at least one source model has changed, unless --force bypasses the SHA check. Model cards are updated even when weights are unchanged. Use --keep --no-upload to retain both downloaded inputs and generated upload directories for inspection. The collection helper creates collections, private by default, and can look up the slug of an existing collection by name.
Trade-offs & Limitations
Compared with invoking the upstream llama.cpp converter directly, this wrapper is a stronger fit for maintaining a recurring Hugging Face catalog: it adds model selection, source revision checks, model card updates, and publishing. For a one-off conversion, the direct tool avoids tying the workflow to catalog configuration and collection management. Local execution uses your own workers and storage; Hugging Face Jobs shifts execution to hosted infrastructure without eliminating model transfers or capacity planning.
By default, tracking llama.cpp’s latest master picks up upstream changes but allows conversion behavior to drift between runs. --llama-commit fixes that input, not the full environment: torch is unpinned, and other dependencies use ranges or minimum versions. For repeatable rebuilds, record the source revisions, converter commit, and resolved Python environment. If the converter changes while source weights do not, use --force when you need to regenerate artifacts.
Hardware & Deployment Guide
For local operation, plan for Bash, a Python environment with the listed dependencies, and enough working disk for downloaded models and generated artifacts. A create-venv.sh helper is present. Publishing requires HF_TOKEN with write access to the target organization. --no-upload suppresses publication; it does not establish an offline path for fetching sources or dependencies.
For hosted execution, hf-job.sh submits work to Hugging Face Jobs and accepts --hardware, with cpu-basic shown as an option rather than a sizing guarantee. Size workers by measuring peak RAM and disk use on representative inputs, and account for transfer volume when publishing. The ggml-org catalog is converted weekly through GitHub Actions, with manual dispatch available to maintainers. No tagged release is listed, and the repository license is unspecified.
convert.sh can process the full catalog, one --one entry, or entries matching a --filter pattern.--force bypasses the checks.master by default; --llama-commit selects a specific commit.--keep --no-upload retains downloaded sources and generated upload directories without publishing them.convert.sh, submit to Hugging Face Jobs via hf-job.sh, or use the weekly GitHub Actions workflow as a scheduling reference.create-collection.sh creates private-by-default collections and resolves existing slugs by case-sensitive name.Teams that regularly regenerate and publish GGUF artifacts for a configured Hugging Face model catalog, locally or via hosted Jobs.
You need an inference server, an offline-only workflow out of the box, or a one-off conversion that does not need catalog and publishing automation.
Quick Start & Installation
# Convert all models bash convert.sh --owner <org> # Convert a single model bash convert.sh --owner <org> --one gemma-4-12b # Convert models matching a filter bash convert.sh --owner <org> --filter '^gemma' # Force re-convert (ignore SHA checks) bash convert.sh --owner <org> --force # Keep downloaded models and generated upload directories bash convert.sh --owner <org> --keep # Keep downloaded models and generated upload directories, but don't upload bash convert.sh --owner <org> --keep --no-upload # Use a specific llama.cpp commit bash convert.sh --owner <org> --llama-commit <commit> # Run via HF Jobs (cloud infrastructure) bash hf-job.sh --owner <org> # Run via HF Jobs with a custom hardware flavor bash hf-job.sh --owner <org> --hardware cpu-basic # Create a collection on Hugging Face (prints the collection slug, private by default) bash create-collection.sh --owner <org> --na
Comparison vs. Top LLMs & Inference Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| convert ★ | 78 | +4 | Shell | — | Shell pipeline for GGUF conversion and Hugging Face publishing |
| ollama | 189k | +703 | Go | MIT | Go-based LLM serving layer for local model management and inference |
| llama.cpp | 137.2k | +762 | C++ | MIT | ggml-backed C/C++ inference for local and self-hosted GGUF models |
| OmniRoute | 92.1k | +1.5k | TypeScript | MIT | Self-hosted OpenAI-compatible gateway for multi-provider routing and fallback |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/ggml-org/convert.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about convert
How do I integrate conversion into an existing release pipeline?
convert.sh from the release workflow with --owner and select models with --one or --filter. Pin --llama-commit when the converter revision matters. For a review step before publication, run with --keep --no-upload and inspect the retained outputs.Do I need a GPU, and how should I size a worker?
hf-job.sh exposes a cpu-basic hardware option, and the Python manifest references PyTorch’s CPU wheel index. Neither establishes that every listed model will fit that flavor. Test a representative model, measure peak RAM and disk use, and account for both the downloaded source and generated GGUF files.Can we run this internally and publish the results commercially?
When is this preferable to calling the llama.cpp converter directly?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy