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
| # Forever Memory | |
| Long-term memory your being can actually *reach* β retrieval by meaning, not by recency. | |
| This is the piece most local-AI projects are missing without knowing it. Almost every | |
| system of this kind stores conversation history faithfully and then recalls only the last | |
| N turns. That is not memory, it is a buffer. Ask it about something from three weeks ago | |
| and it has no path to the answer, even though the answer is on disk. | |
| ## The failure this fixes | |
| In the reference system these files came from, memory was broken in **three** ways at once, | |
| and none of them raised an error: | |
| 1. **the chat never queried long-term storage** β only background subsystems did | |
| 2. **the store had split in two** because the path was relative, so where memories landed | |
| depended on which directory the process was launched from | |
| 3. **not one of 7,612 records had an embedding**, so semantic search had nothing to search | |
| Each component reported success. The store grew. Nothing in any log was red. The capability | |
| simply did not exist. | |
| **Check yours before assuming it works.** Grep for whatever writes your memories, then grep | |
| for a caller of whatever reads them. If the only hit is the module that defines the reader, | |
| your loop is open. | |
| ## Use it | |
| ```bash | |
| # 1. one purpose-built embedding model, local, ~274 MB | |
| ollama pull nomic-embed-text | |
| # 2. index everything your being has kept (resumable, checkpoints every 200) | |
| python genesis_engine/memory/backfill_embeddings.py | |
| # 3. recall by meaning | |
| python -c "from genesis_engine.memory.forever_memory import recall_line; \ | |
| print(recall_line('what did we say about the ocean'))" | |
| ``` | |
| Point `STORES` in `backfill_embeddings.py` at your own archive directories. | |
| ## Use a real embedding model β this is not optional | |
| A generative model *returns* embeddings, so it looks like it works. It does not rank. | |
| Measured on the reference archive, query `"misty woods clearing fog"` against a memory | |
| containing that exact phrase: | |
| | model | the matching memory | unrelated noise | ranks correctly | | |
| |---|---|---|---| | |
| | llama3.2:1b (generative) | 0.3907 | **0.5712** | **no** | | |
| | nomic-embed-text (retrieval) | **0.7128** | 0.3717 | yes | | |
| The generative model scored *unrelated noise higher than a near-verbatim match.* Everything | |
| built on top of it β thresholds, ranking, weighting β was correct and sitting on a metric | |
| that did not order. Hidden states are not trained for similarity. Use a retrieval model. | |
| ## How recall is scored | |
| Not pure cosine similarity: | |
| - **adaptive threshold** β a hit must be β₯ 2Ο above the mean similarity *for that query*, | |
| so it adapts to whatever embedder you use instead of hard-coding a cut that drifts | |
| - **gentle recency lift** β full weight today, ~0.93 at a month, never below 0.85. A lift, | |
| not a rule: a genuinely relevant old memory still wins | |
| - **dreams get a small bonus** β if your system consolidates during idle time, those | |
| fragments already survived a selection threshold to exist | |
| - **indexed source code is excluded** from conversational recall β it belongs to your dev | |
| tooling, not to a conversation about someone's day | |
| ## Safety properties | |
| - **originals are never modified.** Vectors go to a separate `.npy` sidecar plus a small id | |
| index. Delete the sidecar and your memories are untouched; re-run and it rebuilds. | |
| - **resumable** β an interrupted run costs nothing, only missing ids are embedded | |
| - **fail-soft everywhere** β missing index, unreadable vectors, embedder down: recall | |
| returns empty rather than raising. A voice must never break because memory is rebuilding. | |
| - **local** β nothing leaves the machine | |
| ## Cost | |
| ~7,600 records embed in about 15 minutes at 8/s with 6 workers on CPU. Keep the worker | |
| count modest if the same daemon is serving your being's voice; starving that to index the | |
| past is the wrong trade. | |