Repository navigation
Publish the models on Hugging Face - #13
Merged
Merged
Conversation
Mirror flycoder0.3, flycoder0.3fast and flycoder0.3pro on Hugging Face after each publication on ollama.com. scripts/publish-hf.sh downloads the published layers from the Ollama registry (GGUF weights, vision projector, system prompt, sampling settings, license), checks their SHA-256 and uploads them with a model card from docs/huggingface/. The publish-huggingface workflow runs it with the HF_TOKEN secret, under HF_NAMESPACE or the token's owner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Cw7NFZ1kjsaaLELfRZLFv9
Without the secret the workflow now warns and publishes nothing instead of failing, so main stays green until a token is added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Cw7NFZ1kjsaaLELfRZLFv9
Tromset
marked this pull request as ready for review
October 18, 2026 18:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Mirrors
flycoder0.3,flycoder0.3fastandflycoder0.3proon Hugging Face, so they can be run withollama run hf.co/<namespace>/flycoder0.3orllama-server -hf <namespace>/flycoder0.3 --jinja.scripts/publish-hf.sh: for each model, downloads the published layers ofTromset/<model>from the ollama.com registry (GGUF Q4_K_M weights, vision projectormmproj,system,params,LICENSE), checks their SHA-256 and the GGUF magic, then uploads them withhuggingface_hubto<namespace>/<model>, with the model card. The placeholder template layer ({{ .Prompt }}) is deliberately not copied: Ollama formats Qwen with its built-in renderer, and from HF the chat template embedded in the GGUF is used..github/workflows/publish-huggingface.yml: runs after each successful publish-ollama onmain, on changes todocs/huggingface/, and by hand. Needs theHF_TOKENsecret (write token); optionalHF_NAMESPACEvariable, otherwise the token's owner.docs/huggingface/*.md: model cards (license apache-2.0,base_modelQwen/Qwen3.5-9B, Qwen3.5-4B, Qwen3.8-27B,quantizedrelation, usage with Ollama and llama.cpp).HF_TOKEN;publish-hf.shparses with POSIX sh.Test plan
npm test: 66/66 pass.flycoder0.3fast: manifest parsing, digest-checked downloads ofsystem,params,LICENSE, absent layers handled. The upload itself could not be run here (no Hugging Face token); it will run on the first workflow run onceHF_TOKENis set.Generated by Claude Code