blacksmith-1a / UPLOAD.md
bctnry's picture
Upload folder using huggingface_hub
2054ea3 verified
|
Raw History Blame Contribute Delete
1.83 kB
# Uploading to Hugging Face
The repo is already in model-repo layout. The target repo is `TriusAI/blacksmith-1a`.
## One-shot CLI upload
```zsh
hf auth login # or: huggingface-cli login
hf repo create TriusAI/blacksmith-1a --repo-type model --public
hf upload TriusAI/blacksmith-1a . . --repo-type model # from this directory
```
The bundled `.gitattributes` marks `*.pt` and `*.gguf` as LFS, so the 3.0 GB
checkpoint and the 1 GB GGUF are handled as LFS pointers automatically:
```
*.pt filter=lfs diff=lfs merge=lfs -text
*.gguf filter=lfs diff=lfs merge=lfs -text
```
## Git route
```zsh
git lfs install
git clone https://huggingface.co/TriusAI/blacksmith-1a
cp -r ./* blacksmith-1/ && cd blacksmith-1
git add . && git commit -m "Blacksmith-1: 522M from-scratch model, 64k context, GGUF"
git push
```
## Before you publish
1. **Licence** is set to MIT in the card. The corpora have mixed upstream terms
(SlimPajama ODC-By, UltraChat MIT, Dolly CC-BY-SA, LongAlign research use,
HotpotQA CC BY-SA); the card notes that MIT covers the weights and code, not
the data.
2. **Check the front matter fields** — `datasets` lists upstream corpora with
my best-guess ids; correct any that differ from what you actually used.
3. **Names** are already aligned to the repo: `blacksmith-1a.pt`,
`gguf/blacksmith-1a-128k-f16.gguf`, `gguf/blacksmith-1a-128k-Q4_K_M.gguf`.
4. The Q4_K_M quantisation is already included (327 MB, +1.5% perplexity over
f16), which matters because the 128k KV cache needs ~13.4 GB at f16 and
~3.4 GB with q4 cache types.
## Size
| file | size |
|---|---|
| `blacksmith-1a.pt` | 3.0 GB |
| `gguf/blacksmith-1a-128k-f16.gguf` | 1047 MB |
| `gguf/blacksmith-1a-128k-Q4_K_M.gguf` | 327 MB |
| everything else | ~5 MB |
| **total** | **~4.3 GB** |