All characters on nemotron-4b; one cold-load per fork
Browse filesFiles changed (3)
- app.py+13-9
- docs/blog.md+2-1
- game/models.py+1-1
62 unmodified lines636465666768697071727331 unmodified lines10510610710810911011111211335 unmodified lines14915015115215315415562 unmodified linesINITIAL_CHARACTERS = 4DEFAULT_NAMES = ["Ada", "Bram", "Cyra", "Doro", "Eli", "Faye", "Gus", "Hild", "Ira", "Juno"]# Heroes always run on Nemotron 4B (sponsor model, highest-quality reasoning# in the side panel on camera). Everyone else uses DEFAULT_MODEL_ID# (Llama 3.2 3B) — small enough to be cheap to fork but large enough to# drive the smolagents CodeAgent format. Heroes are pinned by NAME so a# reset or fresh world always yields the same heroes.HERO_MODEL_ID = "nemotron-4b"HERO_NAMES = ("Ada", "Bram", "Cyra")31 unmodified linesexcept Exception as e:tlog(f"[townlet] model path resolve skipped: {e}")return# Only the models the spawn config actually uses. Resolving paths for# roster models we never load would waste ~5s of startup per model.for model_id in ("nemotron-4b", "llama-3b"):spec = ROSTER.get(model_id)if spec is None:continue35 unmodified lines# the lock). Code, not the LLM, picks the exact stand-tile.spawn_place = RNG.choice(("cave", "well", "locker_row", "town_hall"))pos = stand_tile_for(spawn_place, name)model_id = HERO_MODEL_ID if name in HERO_NAMES else DEFAULT_MODEL_IDchar = Character(name=name,personality=arch.personality,62 unmodified lines636465666768697071727374757631 unmodified lines10810911011111211311411511635 unmodified lines15215315415515615715815962 unmodified linesINITIAL_CHARACTERS = 4DEFAULT_NAMES = ["Ada", "Bram", "Cyra", "Doro", "Eli", "Faye", "Gus", "Hild", "Ira", "Juno"]# All characters run on Nemotron 4B (sponsor model, strong reasoning,# and — critically — sharing one model across every character means each# @spaces.GPU fork only pays ONE cold-load instead of one-per-distinct-# model. Used to be a mixed stack (heroes=Nemotron, wanderer=Llama 3.2 3B)# but the second model added ~17s of per-fork cold-load whenever Doro's# turn came up, with no narrative benefit. HERO_NAMES still tracks who's# pinned to a specific archetype (engineer/diplomat/saboteur); model is# uniform.HERO_MODEL_ID = "nemotron-4b"HERO_NAMES = ("Ada", "Bram", "Cyra")31 unmodified linesexcept Exception as e:tlog(f"[townlet] model path resolve skipped: {e}")return# Single model — every character uses nemotron-4b. Resolving paths# for roster models we never load would waste ~5s of startup per model.for model_id in ("nemotron-4b",):spec = ROSTER.get(model_id)if spec is None:continue35 unmodified lines# the lock). Code, not the LLM, picks the exact stand-tile.spawn_place = RNG.choice(("cave", "well", "locker_row", "town_hall"))pos = stand_tile_for(spawn_place, name)# Single model for all characters — see HERO_MODEL_ID comment above.model_id = HERO_MODEL_IDchar = Character(name=name,personality=arch.personality,
26 unmodified lines27282930313226 unmodified lines- The characters and limits did not give me the results, visually I had hoped for, they did use the shell and message board which was interesting to see.- The charactes did not evolve as I had hoped. I did include a dream feature that periodically should have shiffted behaviour, but it did not do enough.-THe26 unmodified lines2728293031323326 unmodified lines- The characters and limits did not give me the results, visually I had hoped for, they did use the shell and message board which was interesting to see.- The charactes did not evolve as I had hoped. I did include a dream feature that periodically should have shiffted behaviour, but it did not do enough.THe
25 unmodified lines2627282930313225 unmodified linescard_url: strDEFAULT_MODEL_ID = "llama-3b"ROSTER: dict[str, ModelSpec] = {25 unmodified lines2627282930313225 unmodified linescard_url: strDEFAULT_MODEL_ID = "nemotron-4b"ROSTER: dict[str, ModelSpec] = {
app.py+13-9
docs/blog.md+2-1
game/models.py+1-1