Update README.md
Browse files15 unmodified lines16171819202122232425262728293031323334353637383940414243444546474815 unmodified lines## Quick Start```python!wget https://huggingface.co/DigitalDaimyo/AddressedStateAttention/resolve/main/asm_analysis.py!wget https://huggingface.co/DigitalDaimyo/AddressedStateAttention/resolve/main/universal_loader.pyfrom universal_loader import load_asm_checkpointfrom huggingface_hub import hf_hub_download# Download checkpointckpt_path = hf_hub_download(repo_id="DigitalDaimyo/AddressedStateAttention",filename="checkpoints/fineweb_187M_75k.pt")# Load modelmodel, cfg, ckpt = load_asm_checkpoint(ckpt_path, mode="analysis")# Generate textfrom transformers import AutoTokenizerfrom generation import generatetokenizer = AutoTokenizer.from_pretrained("gpt2")text = generate(model, tokenizer,prompt="The capital of France is",max_new_tokens=20,strategy="greedy")print(text)PerformanceFineWeb, 187M params: 3.73 val loss / 41.6 PPL (75k steps)Architecture: 21 layers, 768d, 12 heads, 16 slots15 unmodified lines161718192021222324252627282930313233343536373815 unmodified lines## Quick Start```python# Install directly from GitHub!pip install git+https://github.com/DigitalDaimyo/AddressedStateAttention.gitfrom asa import load_asm_checkpoint, generatefrom transformers import AutoTokenizer# Load checkpointmodel, cfg, ckpt = load_asm_checkpoint("path/to/checkpoint.pt",mode="analysis")tokenizer = AutoTokenizer.from_pretrained("gpt2")# Generate textprint(generate(model, tokenizer, "Once upon a time"))PerformanceFineWeb, 187M params: 3.73 val loss / 41.6 PPL (75k steps)Architecture: 21 layers, 768d, 12 heads, 16 slots
README.md+10-20