Text Generation
PyTorch
GGUF
English
quantum
quantum-entropy
from-scratch
char-level
cosmic-synapse-theory
custom-architecture
llama-cpp
continual-learning
reproducible-seed
open-science
null-results
Instructions to use phera-ra/QC67_cosmo 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 phera-ra/QC67_cosmo 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 phera-ra/QC67_cosmo # Run inference directly in the terminal: llama cli -hf phera-ra/QC67_cosmo
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf phera-ra/QC67_cosmo # Run inference directly in the terminal: llama cli -hf phera-ra/QC67_cosmo
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf phera-ra/QC67_cosmo # Run inference directly in the terminal: ./llama-cli -hf phera-ra/QC67_cosmo
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf phera-ra/QC67_cosmo # Run inference directly in the terminal: ./build/bin/llama-cli -hf phera-ra/QC67_cosmo
Use Docker
docker model run hf.co/phera-ra/QC67_cosmo
- LM Studio
- Jan
- vLLM
How to use phera-ra/QC67_cosmo with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "phera-ra/QC67_cosmo" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "phera-ra/QC67_cosmo", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/phera-ra/QC67_cosmo
- Ollama
How to use phera-ra/QC67_cosmo with Ollama:
ollama run hf.co/phera-ra/QC67_cosmo
- Unsloth Studio
How to use phera-ra/QC67_cosmo with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for phera-ra/QC67_cosmo to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for phera-ra/QC67_cosmo to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for phera-ra/QC67_cosmo to start chatting
- Docker Model Runner
How to use phera-ra/QC67_cosmo with Docker Model Runner:
docker model run hf.co/phera-ra/QC67_cosmo
- Lemonade
How to use phera-ra/QC67_cosmo with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull phera-ra/QC67_cosmo
Run and chat with the model
lemonade run user.QC67_cosmo-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
| #!/usr/bin/env python3 | |
| """Fetch WikiText-103-raw and write it as a flat character corpus. | |
| WHY A STANDARD CORPUS IS THE POINT | |
| Every number measured so far is on 683,065 characters of Cory's own logs. That corpus | |
| cannot answer the scaling question for two separate reasons: | |
| 1. At 10M+ parameters a 683K-character corpus is memorised, so every rung converges to | |
| the same overfit floor and the comparison silently becomes about regularisation | |
| rather than architecture. | |
| 2. Results on a private corpus are not checkable by anyone else. WikiText-103 is the | |
| benchmark the field already uses, so a dyn12 advantage measured here is directly | |
| comparable to published work instead of being a claim about one person's log files. | |
| One train shard is ~157 MB of parquet, which yields roughly a quarter of a billion | |
| characters -- enough that a 30M-parameter model is data-limited rather than | |
| memorisation-limited. | |
| python tools/fetch_wikitext.py [--shards 1] | |
| """ | |
| from __future__ import annotations | |
| import sys | |
| from pathlib import Path | |
| sys.stdout.reconfigure(encoding="utf-8", errors="replace") | |
| OUT = Path("01_HER_SOUL/corpus_snapshots/wikitext103_train.txt") | |
| REPO = "Salesforce/wikitext" | |
| SHARDS = ["wikitext-103-raw-v1/train-00000-of-00002.parquet", | |
| "wikitext-103-raw-v1/train-00001-of-00002.parquet"] | |
| def main() -> int: | |
| n = 1 | |
| if "--shards" in sys.argv: | |
| n = int(sys.argv[sys.argv.index("--shards") + 1]) | |
| import pyarrow.parquet as pq | |
| from huggingface_hub import hf_hub_download | |
| OUT.parent.mkdir(parents=True, exist_ok=True) | |
| total = 0 | |
| with OUT.open("w", encoding="utf-8", newline="\n") as f: | |
| for s in SHARDS[:n]: | |
| print(f" downloading {s} ...", flush=True) | |
| local = hf_hub_download(REPO, s, repo_type="dataset") | |
| t = pq.read_table(local) | |
| col = t.column("text").to_pylist() | |
| # WikiText ships one row per line, blanks and " = Heading = " markers included. | |
| # Both are kept: they carry document structure a character model can learn. | |
| for line in col: | |
| if line: | |
| f.write(line) | |
| total += len(line) | |
| print(f" {len(col):,} rows, running total {total/1e6:.1f}M chars", flush=True) | |
| size = OUT.stat().st_size | |
| print(f"\n wrote {OUT}") | |
| print(f" {total:,} characters, {size/1e6:.1f} MB on disk") | |
| import hashlib | |
| h = hashlib.sha256() | |
| with OUT.open("rb") as fh: | |
| for c in iter(lambda: fh.read(1 << 20), b""): | |
| h.update(c) | |
| print(f" sha256 {h.hexdigest()[:16]} <- freeze this in any result table") | |
| return 0 | |
| if __name__ == "__main__": | |
| raise SystemExit(main()) | |