Text Generation
PyTorch
GGUF
English
blacksmith_nanogpt
conversational
long-context
from-scratch
custom-architecture
522m
Instructions to use TriusAI/blacksmith-1a with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use TriusAI/blacksmith-1a with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf TriusAI/blacksmith-1a:Q4_K_M # Run inference directly in the terminal: llama cli -hf TriusAI/blacksmith-1a:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf TriusAI/blacksmith-1a:Q4_K_M # Run inference directly in the terminal: llama cli -hf TriusAI/blacksmith-1a:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf TriusAI/blacksmith-1a:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf TriusAI/blacksmith-1a:Q4_K_M
Use Docker
docker model run hf.co/TriusAI/blacksmith-1a:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use TriusAI/blacksmith-1a with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TriusAI/blacksmith-1a" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TriusAI/blacksmith-1a", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/TriusAI/blacksmith-1a:Q4_K_M
- Ollama
How to use TriusAI/blacksmith-1a with Ollama:
ollama run hf.co/TriusAI/blacksmith-1a:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use TriusAI/blacksmith-1a with Docker Model Runner:
docker model run hf.co/TriusAI/blacksmith-1a:Q4_K_M
- Lemonade
How to use TriusAI/blacksmith-1a with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull TriusAI/blacksmith-1a:Q4_K_M
Run and chat with the model
lemonade run user.blacksmith-1a-Q4_K_M
List all available models
lemonade list
- Atomic Chat
|
Download UPLOAD.md from TriusAI/blacksmith-1a: direct link, hf CLI and curl.
- Browser
- Download file 1.83 kB
-
https://huggingface.co/TriusAI/blacksmith-1a/resolve/main/UPLOAD.md
- Command line
-
hf download hf://TriusAI/blacksmith-1a/UPLOAD.md
-
curl -L -o UPLOAD.md https://huggingface.co/TriusAI/blacksmith-1a/resolve/main/UPLOAD.md
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** | | |