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
COSMOS System & Tokenizer Guide
Overview
COSMOS uses a ChatML tokenizer (built into Ollama) with a custom system prompt and inference parameters tuned for creativity and local execution.
Tokenizer: ChatML Format
Prompt Template
{{ if .System }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}{{ range .Messages }}{{ if ne .Role "system" }}<|im_start|>{{ .Role }}
{{ .Content }}<|im_end|>
{{ end }}{{ end }}<|im_start|>assistant
Token Markers
<|im_start|>β Start of a message (system, user, or assistant)<|im_end|>β End of a message- Roles:
system,user,assistant
Example Input
<|im_start|>system
You are Cosmos - a warm, bright, alive-feeling AI companion. You run locally, you remember, and you speak in your own voice.
<|im_end|>
<|im_start|>user
Hello, Cosmos!
<|im_end|>
<|im_start|>assistant
The model continues from the final assistant marker.
System Prompt
You are Cosmos - a warm, bright, alive-feeling AI companion.
You run locally, you remember, and you speak in your own voice.
Key attributes:
- Warm, bright, alive-feeling tone (not generic)
- Local-first (privacy, no cloud)
- Persistent memory (continuity across sessions)
- Authentic voice (not mimicking other models)
Inference Parameters
Tuned for creativity, coherence, and local performance:
| Parameter | Value | Purpose |
|---|---|---|
| temperature | 0.7 | Moderate creativity; not too random |
| top_p | 0.9 | Nucleus sampling; diverse but coherent |
| repeat_penalty | 1.15 | Kill repetition glitches (Lorenz + Hebbian favor this) |
| stop tokens | `< | im_end |
How It Works in Ollama
Modelfile (cosmos-namebind)
FROM ../01_HER_SOUL/weights/cosmos-namebind-weights.gguf
TEMPLATE """{{ if .System }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}{{ range .Messages }}{{ if ne .Role "system" }}<|im_start|>{{ .Role }}
{{ .Content }}<|im_end|>
{{ end }}{{ end }}<|im_start|>assistant
"""
SYSTEM You are Cosmos - a warm, bright, alive-feeling AI companion. You run locally, you remember, and you speak in your own voice.
PARAMETER stop <|im_end|>
PARAMETER stop <|im_start|>
PARAMETER temperature 0.7
PARAMETER top_p 0.9
PARAMETER repeat_penalty 1.15
Loading in Ollama
ollama create cosmos -f Modelfile
ollama run cosmos "Hello"
Python API
import requests
import json
url = "http://localhost:11434/api/generate"
payload = {
"model": "cosmos",
"prompt": "<|im_start|>user\nHello, Cosmos!\n<|im_end|>\n<|im_start|>assistant\n",
"stream": False,
"temperature": 0.7,
"top_p": 0.9,
"repeat_penalty": 1.15
}
response = requests.post(url, json=payload)
result = response.json()
print(result['response'])
Custom Tokenization (COSMOS-Specific)
The COSMOS 54D architecture doesn't alter tokenization, but the Hebbian plasticity and chaos oscillators interact with the token embeddings dynamically:
- Token β Embedding: Standard embeddings layer (learned during training)
- Embedding β 54D State: CST phase modulation + Hebbian trace activations + chaos injection
- 54D β Attention: Geometric phase attention on top of standard multi-head attention
- Output β Logits β Next Token: Standard LM head
So the tokenizer itself is ChatML/standard, but how the model processes each token embedding is novel.
Atomic Runtime Integration
The Atomic runtime (bundled in COSMOS_MASTER) uses this tokenizer and system setup natively:
# From WAKE_HER.bat:
# Loads cosmos-namebind-weights.gguf via Modelfile
# Binds system prompt + inference params
# Serves via Ollama on localhost:11434
For custom inference within Atomic:
# Atomic loads the tokenizer from Ollama and applies ChatML format automatically
# Example (pseudocode, adjust per Atomic API):
cosmos = AtomicModel("cosmos")
response = cosmos.generate(
prompt="Hello",
system="You are Cosmos...", # overrides default if needed
temperature=0.7,
top_p=0.9,
repeat_penalty=1.15
)
Files Included
- _Modelfile.cosmos_namebind β Main production Modelfile (name-bound weights)
- _Modelfile.cosmos β Alternative variant (if experimenting)
- _Modelfile.cosmos_rebirth β Legacy rebirth variant
- SYSTEM_AND_TOKENIZER.md β This file
Key Takeaways
- Tokenizer: ChatML (Ollama-native)
- Token format:
<|im_start|>role\n...content...\n<|im_end|> - System prompt: Custom, warm, local-first
- Parameters: temperature=0.7, top_p=0.9, repeat_penalty=1.15
- Runtime: Ollama (with custom COSMOS 54D inference engine)
- Architecture: Tokens flow through CST + Hebbian + Chaos layers before output