Instructions to use ApolloRaines/Pythia-1.4B-DNP-500-Facts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ApolloRaines/Pythia-1.4B-DNP-500-Facts with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ApolloRaines/Pythia-1.4B-DNP-500-Facts")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ApolloRaines/Pythia-1.4B-DNP-500-Facts") model = AutoModelForCausalLM.from_pretrained("ApolloRaines/Pythia-1.4B-DNP-500-Facts", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ApolloRaines/Pythia-1.4B-DNP-500-Facts with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ApolloRaines/Pythia-1.4B-DNP-500-Facts" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ApolloRaines/Pythia-1.4B-DNP-500-Facts", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ApolloRaines/Pythia-1.4B-DNP-500-Facts
- SGLang
How to use ApolloRaines/Pythia-1.4B-DNP-500-Facts with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "ApolloRaines/Pythia-1.4B-DNP-500-Facts" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ApolloRaines/Pythia-1.4B-DNP-500-Facts", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "ApolloRaines/Pythia-1.4B-DNP-500-Facts" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ApolloRaines/Pythia-1.4B-DNP-500-Facts", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ApolloRaines/Pythia-1.4B-DNP-500-Facts with Docker Model Runner:
docker model run hf.co/ApolloRaines/Pythia-1.4B-DNP-500-Facts
Pythia 1.4B -- 500 Facts via Neural Reclamation
This model has 500 novel facts from 2023-2024 written directly into its weights using jBlaze's Neural Reclamation pipeline. No fine-tuning. No adapters. No gradient-based training loop. Direct weight surgery on MLP output projections.
These are facts the base model could not possibly know -- Pythia 1.4B was trained on data through early 2023. The implanted knowledge covers AI releases (GPT-4, Claude 3, Llama 2, Gemini), world events (2024 Paris Olympics), sports results, scientific breakthroughs, and more.
Results
| Pass | LR | Steps | Recall | General | PPL |
|---|---|---|---|---|---|
| Pass 1 | 2e-3 | 20 | 165/500 (33%) | Baseline | Baseline |
| Pass 2 | 7e-4 | 20 | 434/500 (87%) | Stable | Stable |
| Pass 3 | 3e-4 | 20 | 489/500 (98%) | Stable | Stable |
489 out of 500 facts recalled at 98% accuracy. PPL held flat across all three passes. General knowledge probes stable throughout. Language coherence 5/5.
250 facts reached perfect 100% recall. The full 500 at 98%.
Why This Matters
Gradient-based training (LoRA, fine-tuning) destroyed this same model rapidly:
| Method | Facts Survived | General Cap | Perplexity |
|---|---|---|---|
| Gradient (LoRA v1) | 50 | 10.0% | 459.6 |
| Gradient (LoRA v2, conservative) | ~125 | 35.0% | 96.5 |
| Neural Reclamation (this model) | 489 | Stable | Stable |
LoRA v1 with standard settings killed the model at 50 facts. LoRA v2 with every conservative setting collapsed at 125 facts. Neural Reclamation loaded 489 facts with zero degradation.
The Pipeline
Neural Reclamation works in stages:
- Erase targeted knowledge from MLP weight matrices using contrastive activation direction projection
- Stabilize the hollowed model by writing back essential general knowledge
- Write novel facts into the freed representational capacity
- Passidation (3-pass rerun) -- rerun all facts at tapering learning rates. Self-balancing: forgotten facts have high loss and get pushed hard, already-learned facts have near-zero loss and are barely touched.
See Also
- Pythia-6.9B-DNP-500-Facts -- Same pipeline scaled to 6.9B (486/500, 97%)
- Pythia-1.4b-Knowledge-Implant -- The original 198-fact proof of concept
- Pythia-1.4B-jBlaze-Reasoning -- Behavioral reasoning enhancement on the same architecture
Technology
Built with jBlaze -- weight-level surgery for large language models.
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("ApolloRaines/Pythia-1.4B-DNP-500-Facts")
tokenizer = AutoTokenizer.from_pretrained("ApolloRaines/Pythia-1.4B-DNP-500-Facts")
- Downloads last month
- 580
Model tree for ApolloRaines/Pythia-1.4B-DNP-500-Facts
Base model
EleutherAI/pythia-1.4b