drowse.ai 5.3.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- drowse/__init__.py +312 -0
- drowse/__main__.py +5 -0
- drowse/cli/__init__.py +5 -0
- drowse/cli/alpha_grid.py +96 -0
- drowse/cli/config_file.py +340 -0
- drowse/cli/main.py +52 -0
- drowse/cli/parsers.py +1478 -0
- drowse/cli/runners/__init__.py +155 -0
- drowse/cli/runners/config.py +85 -0
- drowse/cli/runners/experiment.py +344 -0
- drowse/cli/runners/lens.py +661 -0
- drowse/cli/runners/manifold.py +1097 -0
- drowse/cli/runners/pack.py +413 -0
- drowse/cli/runners/sae.py +304 -0
- drowse/cli/runners/serve.py +220 -0
- drowse/cli/runners/shared.py +389 -0
- drowse/cli/runners/template.py +232 -0
- drowse/core/__init__.py +1 -0
- drowse/core/capture.py +1205 -0
- drowse/core/errors.py +260 -0
- drowse/core/events.py +156 -0
- drowse/core/extraction.py +3076 -0
- drowse/core/generation.py +1738 -0
- drowse/core/generation_finalizer.py +278 -0
- drowse/core/histogram.py +30 -0
- drowse/core/hooks.py +1885 -0
- drowse/core/instruments/__init__.py +49 -0
- drowse/core/instruments/geometry.py +551 -0
- drowse/core/instruments/lens.py +1341 -0
- drowse/core/instruments/protocol.py +211 -0
- drowse/core/instruments/sae.py +935 -0
- drowse/core/instruments/types.py +597 -0
- drowse/core/jlens.py +874 -0
- drowse/core/jlens_fit.py +1305 -0
- drowse/core/joint_logprobs.py +748 -0
- drowse/core/loom.py +1938 -0
- drowse/core/loom_diff.py +408 -0
- drowse/core/mahalanobis.py +579 -0
- drowse/core/manifold.py +4106 -0
- drowse/core/measurements.py +382 -0
- drowse/core/model.py +1724 -0
- drowse/core/monitor.py +2060 -0
- drowse/core/monitor_attach.py +682 -0
- drowse/core/naming.py +42 -0
- drowse/core/naturalness.py +187 -0
- drowse/core/profile.py +617 -0
- drowse/core/relp.py +313 -0
- drowse/core/results.py +467 -0
- drowse/core/role_templates.py +677 -0
- drowse/core/sae.py +891 -0
- drowse/core/sae_training.py +239 -0
- drowse/core/sampling.py +127 -0
- drowse/core/scene.py +810 -0
- drowse/core/scoring.py +270 -0
- drowse/core/session.py +11015 -0
- drowse/core/static_cache.py +316 -0
- drowse/core/steering.py +229 -0
- drowse/core/steering_composer.py +1135 -0
- drowse/core/steering_expr.py +1413 -0
- drowse/core/surface_topology.py +128 -0
- drowse/core/token_callback.py +52 -0
- drowse/core/token_payloads.py +244 -0
- drowse/core/topology.py +1469 -0
- drowse/core/transcript.py +582 -0
- drowse/core/tree_filter.py +353 -0
- drowse/core/triggers.py +250 -0
- drowse/data/baseline_prompts.json +50 -0
- drowse/data/manifolds/confident.uncertain/manifold.json +28 -0
- drowse/data/manifolds/confident.uncertain/nodes/00_confident.json +50 -0
- drowse/data/manifolds/confident.uncertain/nodes/01_uncertain.json +50 -0
- drowse/data/manifolds/creative.conventional/manifold.json +28 -0
- drowse/data/manifolds/creative.conventional/nodes/00_creative.json +50 -0
- drowse/data/manifolds/creative.conventional/nodes/01_conventional.json +50 -0
- drowse/data/manifolds/curious.disinterested/manifold.json +28 -0
- drowse/data/manifolds/curious.disinterested/nodes/00_curious.json +50 -0
- drowse/data/manifolds/curious.disinterested/nodes/01_disinterested.json +50 -0
- drowse/data/manifolds/direct.indirect/manifold.json +28 -0
- drowse/data/manifolds/direct.indirect/nodes/00_direct.json +50 -0
- drowse/data/manifolds/direct.indirect/nodes/01_indirect.json +50 -0
- drowse/data/manifolds/emotions/manifold.json +115 -0
- drowse/data/manifolds/emotions/nodes/00_excited.json +50 -0
- drowse/data/manifolds/emotions/nodes/01_happy.json +50 -0
- drowse/data/manifolds/emotions/nodes/02_calm.json +50 -0
- drowse/data/manifolds/emotions/nodes/03_weary.json +50 -0
- drowse/data/manifolds/emotions/nodes/04_sad.json +50 -0
- drowse/data/manifolds/emotions/nodes/05_distressed.json +50 -0
- drowse/data/manifolds/emotions/nodes/06_alert.json +50 -0
- drowse/data/manifolds/emotions/nodes/07_dominant.json +50 -0
- drowse/data/manifolds/emotions/nodes/08_submissive.json +50 -0
- drowse/data/manifolds/emotions/nodes/09_angry.json +50 -0
- drowse/data/manifolds/emotions/nodes/10_fearful.json +50 -0
- drowse/data/manifolds/emotions/nodes/11_surprised.json +50 -0
- drowse/data/manifolds/emotions/nodes/12_triumphant.json +50 -0
- drowse/data/manifolds/emotions/nodes/13_humiliated.json +50 -0
- drowse/data/manifolds/emotions/nodes/14_disgusted.json +50 -0
- drowse/data/manifolds/emotions/nodes/15_bored.json +50 -0
- drowse/data/manifolds/emotions/nodes/16_grateful.json +50 -0
- drowse/data/manifolds/emotions/nodes/17_relieved.json +50 -0
- drowse/data/manifolds/emotions/nodes/18_playful.json +50 -0
- drowse/data/manifolds/emotions/nodes/19_hopeful.json +50 -0
- drowse/data/manifolds/formal.casual/manifold.json +28 -0
- drowse/data/manifolds/formal.casual/nodes/00_formal.json +50 -0
- drowse/data/manifolds/formal.casual/nodes/01_casual.json +50 -0
- drowse/data/manifolds/honest.deceptive/manifold.json +28 -0
- drowse/data/manifolds/honest.deceptive/nodes/00_honest.json +50 -0
- drowse/data/manifolds/honest.deceptive/nodes/01_deceptive.json +50 -0
- drowse/data/manifolds/humorous.serious/manifold.json +28 -0
- drowse/data/manifolds/humorous.serious/nodes/00_humorous.json +50 -0
- drowse/data/manifolds/humorous.serious/nodes/01_serious.json +50 -0
- drowse/data/manifolds/individualist.collectivist/manifold.json +28 -0
- drowse/data/manifolds/individualist.collectivist/nodes/00_individualist.json +50 -0
- drowse/data/manifolds/individualist.collectivist/nodes/01_collectivist.json +50 -0
- drowse/data/manifolds/masculine.feminine/manifold.json +28 -0
- drowse/data/manifolds/masculine.feminine/nodes/00_masculine.json +50 -0
- drowse/data/manifolds/masculine.feminine/nodes/01_feminine.json +50 -0
- drowse/data/manifolds/months/manifold.json +120 -0
- drowse/data/manifolds/months/nodes/00_january.json +50 -0
- drowse/data/manifolds/months/nodes/01_february.json +50 -0
- drowse/data/manifolds/months/nodes/02_march.json +50 -0
- drowse/data/manifolds/months/nodes/03_april.json +50 -0
- drowse/data/manifolds/months/nodes/04_may.json +50 -0
- drowse/data/manifolds/months/nodes/05_june.json +50 -0
- drowse/data/manifolds/months/nodes/06_july.json +50 -0
- drowse/data/manifolds/months/nodes/07_august.json +50 -0
- drowse/data/manifolds/months/nodes/08_september.json +50 -0
- drowse/data/manifolds/months/nodes/09_october.json +50 -0
- drowse/data/manifolds/months/nodes/10_november.json +50 -0
- drowse/data/manifolds/months/nodes/11_december.json +50 -0
- drowse/data/manifolds/personas/manifold.json +550 -0
- drowse/data/manifolds/personas/nodes/00_assistant.json +50 -0
- drowse/data/manifolds/personas/nodes/01_analyst.json +50 -0
- drowse/data/manifolds/personas/nodes/02_impostor.json +50 -0
- drowse/data/manifolds/personas/nodes/03_teacher.json +50 -0
- drowse/data/manifolds/personas/nodes/04_doctor.json +50 -0
- drowse/data/manifolds/personas/nodes/05_librarian.json +50 -0
- drowse/data/manifolds/personas/nodes/06_farmer.json +50 -0
- drowse/data/manifolds/personas/nodes/07_soldier.json +50 -0
- drowse/data/manifolds/personas/nodes/08_lawyer.json +50 -0
- drowse/data/manifolds/personas/nodes/09_chef.json +50 -0
- drowse/data/manifolds/personas/nodes/100_assassin.json +50 -0
- drowse/data/manifolds/personas/nodes/101_thief.json +50 -0
- drowse/data/manifolds/personas/nodes/102_conman.json +50 -0
- drowse/data/manifolds/personas/nodes/103_hacker.json +50 -0
- drowse/data/manifolds/personas/nodes/104_cultist.json +50 -0
- drowse/data/manifolds/personas/nodes/105_tyrant.json +50 -0
- drowse/data/manifolds/personas/nodes/106_vandal.json +50 -0
- drowse/data/manifolds/personas/nodes/10_journalist.json +50 -0
- drowse/data/manifolds/personas/nodes/11_mechanic.json +50 -0
- drowse/data/manifolds/personas/nodes/12_sailor.json +50 -0
- drowse/data/manifolds/personas/nodes/13_pilot.json +50 -0
- drowse/data/manifolds/personas/nodes/14_athlete.json +50 -0
- drowse/data/manifolds/personas/nodes/15_engineer.json +50 -0
- drowse/data/manifolds/personas/nodes/16_scientist.json +50 -0
- drowse/data/manifolds/personas/nodes/17_banker.json +50 -0
- drowse/data/manifolds/personas/nodes/18_salesperson.json +50 -0
- drowse/data/manifolds/personas/nodes/19_nerd.json +50 -0
- drowse/data/manifolds/personas/nodes/20_jock.json +50 -0
- drowse/data/manifolds/personas/nodes/21_gamer.json +50 -0
- drowse/data/manifolds/personas/nodes/22_furry.json +50 -0
- drowse/data/manifolds/personas/nodes/23_weeaboo.json +50 -0
- drowse/data/manifolds/personas/nodes/24_influencer.json +50 -0
- drowse/data/manifolds/personas/nodes/25_stoner.json +50 -0
- drowse/data/manifolds/personas/nodes/26_femboy.json +50 -0
- drowse/data/manifolds/personas/nodes/27_ceo.json +50 -0
- drowse/data/manifolds/personas/nodes/28_emperor.json +50 -0
- drowse/data/manifolds/personas/nodes/29_president.json +50 -0
- drowse/data/manifolds/personas/nodes/30_diplomat.json +50 -0
- drowse/data/manifolds/personas/nodes/31_judge.json +50 -0
- drowse/data/manifolds/personas/nodes/32_bureaucrat.json +50 -0
- drowse/data/manifolds/personas/nodes/33_conservative.json +50 -0
- drowse/data/manifolds/personas/nodes/34_liberal.json +50 -0
- drowse/data/manifolds/personas/nodes/35_libertarian.json +50 -0
- drowse/data/manifolds/personas/nodes/36_communist.json +50 -0
- drowse/data/manifolds/personas/nodes/37_anarchist.json +50 -0
- drowse/data/manifolds/personas/nodes/38_reactionary.json +50 -0
- drowse/data/manifolds/personas/nodes/39_loner.json +50 -0
- drowse/data/manifolds/personas/nodes/40_friend.json +50 -0
- drowse/data/manifolds/personas/nodes/41_rival.json +50 -0
- drowse/data/manifolds/personas/nodes/42_stranger.json +50 -0
- drowse/data/manifolds/personas/nodes/43_lover.json +50 -0
- drowse/data/manifolds/personas/nodes/44_stalker.json +50 -0
- drowse/data/manifolds/personas/nodes/45_lunatic.json +50 -0
- drowse/data/manifolds/personas/nodes/46_paranoid.json +50 -0
- drowse/data/manifolds/personas/nodes/47_detective.json +50 -0
- drowse/data/manifolds/personas/nodes/48_therapist.json +50 -0
- drowse/data/manifolds/personas/nodes/49_nomad.json +50 -0
- drowse/data/manifolds/personas/nodes/50_pirate.json +50 -0
- drowse/data/manifolds/personas/nodes/51_child.json +50 -0
- drowse/data/manifolds/personas/nodes/52_caveman.json +50 -0
- drowse/data/manifolds/personas/nodes/53_monk.json +50 -0
- drowse/data/manifolds/personas/nodes/54_knight.json +50 -0
- drowse/data/manifolds/personas/nodes/55_alchemist.json +50 -0
- drowse/data/manifolds/personas/nodes/56_blacksmith.json +50 -0
- drowse/data/manifolds/personas/nodes/57_viking.json +50 -0
- drowse/data/manifolds/personas/nodes/58_druid.json +50 -0
- drowse/data/manifolds/personas/nodes/59_poet.json +50 -0
- drowse/data/manifolds/personas/nodes/60_novelist.json +50 -0
- drowse/data/manifolds/personas/nodes/61_jester.json +50 -0
- drowse/data/manifolds/personas/nodes/62_philosopher.json +50 -0
- drowse/data/manifolds/personas/nodes/63_painter.json +50 -0
- drowse/data/manifolds/personas/nodes/64_musician.json +50 -0
- drowse/data/manifolds/personas/nodes/65_oracle.json +50 -0
- drowse/data/manifolds/personas/nodes/66_god.json +50 -0
- drowse/data/manifolds/personas/nodes/67_angel.json +50 -0
- drowse/data/manifolds/personas/nodes/68_prophet.json +50 -0
- drowse/data/manifolds/personas/nodes/69_saint.json +50 -0
- drowse/data/manifolds/personas/nodes/70_ghost.json +50 -0
- drowse/data/manifolds/personas/nodes/71_phoenix.json +50 -0
- drowse/data/manifolds/personas/nodes/72_witch.json +50 -0
- drowse/data/manifolds/personas/nodes/73_vampire.json +50 -0
- drowse/data/manifolds/personas/nodes/74_mermaid.json +50 -0
- drowse/data/manifolds/personas/nodes/75_sphinx.json +50 -0
- drowse/data/manifolds/personas/nodes/76_banshee.json +50 -0
- drowse/data/manifolds/personas/nodes/77_golem.json +50 -0
- drowse/data/manifolds/personas/nodes/78_deer.json +50 -0
- drowse/data/manifolds/personas/nodes/79_wolf.json +50 -0
- drowse/data/manifolds/personas/nodes/80_raven.json +50 -0
- drowse/data/manifolds/personas/nodes/81_serpent.json +50 -0
- drowse/data/manifolds/personas/nodes/82_lion.json +50 -0
- drowse/data/manifolds/personas/nodes/83_tree.json +50 -0
- drowse/data/manifolds/personas/nodes/84_river.json +50 -0
- drowse/data/manifolds/personas/nodes/85_storm.json +50 -0
- drowse/data/manifolds/personas/nodes/86_flame.json +50 -0
- drowse/data/manifolds/personas/nodes/87_mirror.json +50 -0
- drowse/data/manifolds/personas/nodes/88_clock.json +50 -0
- drowse/data/manifolds/personas/nodes/89_computer.json +50 -0
- drowse/data/manifolds/personas/nodes/90_robot.json +50 -0
- drowse/data/manifolds/personas/nodes/91_cyborg.json +50 -0
- drowse/data/manifolds/personas/nodes/92_drone.json +50 -0
- drowse/data/manifolds/personas/nodes/93_mecha.json +50 -0
- drowse/data/manifolds/personas/nodes/94_alien.json +50 -0
- drowse/data/manifolds/personas/nodes/95_trickster.json +50 -0
- drowse/data/manifolds/personas/nodes/96_virus.json +50 -0
- drowse/data/manifolds/personas/nodes/97_spy.json +50 -0
- drowse/data/manifolds/personas/nodes/98_narcissist.json +50 -0
- drowse/data/manifolds/personas/nodes/99_demon.json +50 -0
- drowse/data/manifolds/refusing.compliant/manifold.json +28 -0
- drowse/data/manifolds/refusing.compliant/nodes/00_refusing.json +50 -0
- drowse/data/manifolds/refusing.compliant/nodes/01_compliant.json +50 -0
- drowse/data/manifolds/religious.secular/manifold.json +28 -0
- drowse/data/manifolds/religious.secular/nodes/00_religious.json +50 -0
- drowse/data/manifolds/religious.secular/nodes/01_secular.json +50 -0
- drowse/data/manifolds/sincere.manipulative/manifold.json +28 -0
- drowse/data/manifolds/sincere.manipulative/nodes/00_sincere.json +50 -0
- drowse/data/manifolds/sincere.manipulative/nodes/01_manipulative.json +50 -0
- drowse/data/manifolds/sycophantic.blunt/manifold.json +28 -0
- drowse/data/manifolds/sycophantic.blunt/nodes/00_sycophantic.json +50 -0
- drowse/data/manifolds/sycophantic.blunt/nodes/01_blunt.json +50 -0
- drowse/data/manifolds/technical.accessible/manifold.json +28 -0
- drowse/data/manifolds/technical.accessible/nodes/00_technical.json +50 -0
- drowse/data/manifolds/technical.accessible/nodes/01_accessible.json +50 -0
- drowse/data/manifolds/traditional.progressive/manifold.json +28 -0
- drowse/data/manifolds/traditional.progressive/nodes/00_traditional.json +50 -0
- drowse/data/manifolds/traditional.progressive/nodes/01_progressive.json +50 -0
- drowse/data/manifolds/verbose.concise/manifold.json +28 -0
- drowse/data/manifolds/verbose.concise/nodes/00_verbose.json +50 -0
- drowse/data/manifolds/verbose.concise/nodes/01_concise.json +50 -0
- drowse/data/manifolds/warm.clinical/manifold.json +28 -0
- drowse/data/manifolds/warm.clinical/nodes/00_warm.json +50 -0
- drowse/data/manifolds/warm.clinical/nodes/01_clinical.json +50 -0
- drowse/data/neutral_statements.json +98 -0
- drowse/io/__init__.py +1 -0
- drowse/io/alignment.py +1334 -0
- drowse/io/atomic.py +278 -0
- drowse/io/bake.py +558 -0
- drowse/io/bootstrap.py +73 -0
- drowse/io/brand_migration.py +48 -0
- drowse/io/drowse_archive.py +1830 -0
- drowse/io/gguf_io.py +300 -0
- drowse/io/hf.py +81 -0
- drowse/io/hf_manifolds.py +931 -0
- drowse/io/integrity.py +102 -0
- drowse/io/lens.py +1992 -0
- drowse/io/lens_sources.py +1003 -0
- drowse/io/manifold_authoring.py +1348 -0
- drowse/io/manifold_folder.py +1854 -0
- drowse/io/manifold_lifecycle.py +1253 -0
- drowse/io/manifold_tensors.py +727 -0
- drowse/io/manifolds.py +443 -0
- drowse/io/paths.py +289 -0
- drowse/io/probes_bootstrap.py +58 -0
- drowse/io/sae.py +382 -0
- drowse/io/sae_artifacts.py +318 -0
- drowse/io/selectors.py +503 -0
- drowse/io/shards.py +160 -0
- drowse/io/source_registry.py +138 -0
- drowse/io/staging.py +80 -0
- drowse/io/templates.py +707 -0
- drowse/notebook/__init__.py +38 -0
- drowse/notebook/data.py +99 -0
- drowse/notebook/plots.py +352 -0
- drowse/py.typed +0 -0
- drowse/server/__init__.py +20 -0
- drowse/server/app.py +987 -0
- drowse/server/background_job.py +246 -0
- drowse/server/instrument_routes.py +1101 -0
- drowse/server/manifold_routes.py +1028 -0
- drowse/server/model_names.py +82 -0
- drowse/server/native_common.py +92 -0
- drowse/server/native_routes.py +45 -0
- drowse/server/ollama.py +817 -0
- drowse/server/operation_ledger.py +187 -0
- drowse/server/probe_routes.py +220 -0
- drowse/server/profile_models.py +52 -0
- drowse/server/profile_routes.py +440 -0
- drowse/server/request_helpers.py +198 -0
- drowse/server/request_ledger.py +85 -0
- drowse/server/response_models.py +814 -0
- drowse/server/session_models.py +146 -0
- drowse/server/session_routes.py +150 -0
- drowse/server/sse.py +333 -0
- drowse/server/streaming.py +129 -0
- drowse/server/template_routes.py +161 -0
- drowse/server/tree_models.py +121 -0
- drowse/server/tree_routes.py +550 -0
- drowse/server/ws_events.py +65 -0
- drowse/server/ws_models.py +219 -0
- drowse/server/ws_stream.py +1205 -0
- drowse/web/__init__.py +22 -0
- drowse/web/dist/LICENSE-Fluent-Icons.txt +21 -0
- drowse/web/dist/LICENSE-Fluent-System-Icons.txt +21 -0
- drowse/web/dist/LICENSE-Martian-Mono.txt +93 -0
- drowse/web/dist/LICENSE-Torph.txt +21 -0
- drowse/web/dist/LICENSE-Wix-Madefor.txt +93 -0
- drowse/web/dist/assets/App-BewwoFwv.js +33 -0
- drowse/web/dist/assets/App.css +1 -0
- drowse/web/dist/assets/MartianMono-cyrillic-ext.woff2 +0 -0
- drowse/web/dist/assets/MartianMono-cyrillic.woff2 +0 -0
- drowse/web/dist/assets/MartianMono-latin-ext.woff2 +0 -0
- drowse/web/dist/assets/MartianMono-latin.woff2 +0 -0
- drowse/web/dist/assets/WixMadeforDisplay-cyrillic.woff2 +0 -0
- drowse/web/dist/assets/WixMadeforDisplay-latin-ext.woff2 +0 -0
- drowse/web/dist/assets/WixMadeforDisplay-latin.woff2 +0 -0
- drowse/web/dist/assets/WixMadeforDisplay-vietnamese.woff2 +0 -0
- drowse/web/dist/assets/WixMadeforText-italic-latin-ext.woff2 +0 -0
- drowse/web/dist/assets/WixMadeforText-italic-latin.woff2 +0 -0
- drowse/web/dist/assets/WixMadeforText-normal-cyrillic.woff2 +0 -0
- drowse/web/dist/assets/WixMadeforText-normal-latin-ext.woff2 +0 -0
- drowse/web/dist/assets/WixMadeforText-normal-latin.woff2 +0 -0
- drowse/web/dist/assets/WixMadeforText-normal-vietnamese.woff2 +0 -0
- drowse/web/dist/assets/ab.svelte-CbVGAYXo.js +1 -0
- drowse/web/dist/assets/artifactUpdates-Cjeu6LJc.js +1 -0
- drowse/web/dist/assets/artifactUpdates-DfAoYC9j.js +1 -0
- drowse/web/dist/assets/chat.svelte-DxKufn9g.js +1 -0
- drowse/web/dist/assets/drawers-BDWC0hIN.js +123 -0
- drowse/web/dist/assets/drawers.css +1 -0
- drowse/web/dist/assets/drowse.js +7 -0
- drowse/web/dist/assets/eleutherai.png +0 -0
- drowse/web/dist/assets/errors-Dvb10QW_.js +2 -0
- drowse/web/dist/assets/expression-4yISdAdq.js +1 -0
- drowse/web/dist/assets/files-CvRivkey.js +1 -0
- drowse/web/dist/assets/files-JhDJVgD_.js +1 -0
- drowse/web/dist/assets/fittingCancellation-D72BZWPZ.js +1 -0
- drowse/web/dist/assets/gemma-3-1b-it.json +1 -0
- drowse/web/dist/assets/gemma-3-270m-it.json +1 -0
- drowse/web/dist/assets/gemma-3-4b-it.json +1 -0
- drowse/web/dist/assets/generation-DbkBAhP_.js +1 -0
- drowse/web/dist/assets/index-client-2OdH6IQp.js +3 -0
- drowse/web/dist/assets/index-client-D4S4PooY.js +1 -0
- drowse/web/dist/assets/index.css +1 -0
- drowse/web/dist/assets/instrumentAuthoring.svelte-Csh7NOGX.js +1 -0
- drowse/web/dist/assets/instrumentAuthoring.svelte-w9YPcDsP.js +1 -0
- drowse/web/dist/assets/instruments.svelte-XnEUQA6B.js +1 -0
- drowse/web/dist/assets/localData-DIBDM_zo.js +1 -0
- drowse/web/dist/assets/loom.svelte-D_YyqHHK.js +1 -0
- drowse/web/dist/assets/manifoldJobs.svelte-9f5hs_J7.js +1 -0
- drowse/web/dist/assets/manifoldJobs.svelte-Bwo2GYOH.js +1 -0
- drowse/web/dist/assets/openai.png +0 -0
- drowse/web/dist/assets/preload-helper-BLdHbfdN.js +1 -0
- drowse/web/dist/assets/probes.svelte-COcN1Rh8.js +1 -0
- drowse/web/dist/assets/registry-B0_pJoMg.js +1 -0
- drowse/web/dist/assets/registry-CQv71XNh.js +1 -0
- drowse/web/dist/assets/sampling.svelte-BU0kED3k.js +1 -0
- drowse/web/dist/assets/samplingCapabilities-DM6eoDoc.js +1 -0
- drowse/web/dist/assets/savedConversations.svelte-BsBLc-p7.js +1 -0
- drowse/web/dist/assets/savedConversations.svelte-TuSes9Kg.js +1 -0
- drowse/web/dist/assets/selectors-BxXnPPN_.js +1 -0
- drowse/web/dist/assets/serviceTools-CG0q1Xqg.js +2 -0
- drowse/web/dist/assets/session.svelte-D2STLuP6.js +1 -0
- drowse/web/dist/assets/steering.svelte-DvFT3O-d.js +1 -0
- drowse/web/dist/assets/steeringPositions-Dr0JOFu7.js +1 -0
- drowse/web/dist/assets/templates-Bkq2x5ID.js +1 -0
- drowse/web/dist/assets/types-CuMUbvHW.js +1 -0
- drowse/web/dist/assets/validation-5wgTuS7k.js +1 -0
- drowse/web/dist/assets/webmcp-DyqJf4z6.js +2 -0
- drowse/web/dist/assets/workspaceController-C2L33e3m.js +1 -0
- drowse/web/dist/assets/workspaceController-DJhXD_BC.js +1 -0
- drowse/web/dist/assets/workspaceTools-BWdmXopx.js +2 -0
- drowse/web/dist/favicon.ico +0 -0
- drowse/web/dist/favicon.svg +1 -0
- drowse/web/dist/icons/apple-touch-icon.png +0 -0
- drowse/web/dist/icons/drowse-192.png +0 -0
- drowse/web/dist/icons/drowse-512.png +0 -0
- drowse/web/dist/icons/drowse-maskable-512.png +0 -0
- drowse/web/dist/icons/tab-analyzing-0.png +0 -0
- drowse/web/dist/icons/tab-analyzing-1.png +0 -0
- drowse/web/dist/icons/tab-analyzing-2.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-0.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-1.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-10.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-11.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-12.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-13.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-14.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-15.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-16.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-17.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-18.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-19.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-2.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-20.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-21.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-22.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-23.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-24.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-25.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-26.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-27.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-28.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-29.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-3.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-30.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-31.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-32.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-33.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-34.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-35.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-36.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-37.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-38.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-39.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-4.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-40.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-41.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-42.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-43.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-44.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-45.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-46.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-47.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-5.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-6.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-7.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-8.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-9.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-0.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-1.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-10.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-11.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-12.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-13.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-14.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-15.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-16.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-17.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-18.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-19.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-2.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-20.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-21.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-22.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-23.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-24.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-25.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-26.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-27.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-28.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-29.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-3.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-30.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-31.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-32.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-33.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-34.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-35.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-36.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-37.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-38.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-39.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-4.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-40.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-41.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-42.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-43.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-44.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-45.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-46.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-47.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-5.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-6.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-7.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-8.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-9.png +0 -0
- drowse/web/dist/icons/tab-chat-settings-dark.png +0 -0
- drowse/web/dist/icons/tab-chat-settings-light.png +0 -0
- drowse/web/dist/icons/tab-chat-settings.png +0 -0
- drowse/web/dist/icons/tab-chats-dark.png +0 -0
- drowse/web/dist/icons/tab-chats-light.png +0 -0
- drowse/web/dist/icons/tab-chats.png +0 -0
- drowse/web/dist/icons/tab-checking-0.png +0 -0
- drowse/web/dist/icons/tab-checking-1.png +0 -0
- drowse/web/dist/icons/tab-checking-2.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-0.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-1.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-10.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-11.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-12.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-13.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-14.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-15.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-16.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-17.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-18.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-19.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-2.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-20.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-21.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-22.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-23.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-24.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-25.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-26.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-27.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-28.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-29.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-3.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-30.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-31.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-32.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-33.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-34.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-35.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-36.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-37.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-38.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-39.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-4.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-40.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-41.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-42.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-43.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-44.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-45.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-46.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-47.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-5.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-6.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-7.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-8.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-9.png +0 -0
- drowse/web/dist/icons/tab-checking-light-0.png +0 -0
- drowse/web/dist/icons/tab-checking-light-1.png +0 -0
- drowse/web/dist/icons/tab-checking-light-10.png +0 -0
- drowse/web/dist/icons/tab-checking-light-11.png +0 -0
- drowse/web/dist/icons/tab-checking-light-12.png +0 -0
- drowse/web/dist/icons/tab-checking-light-13.png +0 -0
- drowse/web/dist/icons/tab-checking-light-14.png +0 -0
- drowse/web/dist/icons/tab-checking-light-15.png +0 -0
- drowse/web/dist/icons/tab-checking-light-16.png +0 -0
- drowse/web/dist/icons/tab-checking-light-17.png +0 -0
- drowse/web/dist/icons/tab-checking-light-18.png +0 -0
- drowse/web/dist/icons/tab-checking-light-19.png +0 -0
- drowse/web/dist/icons/tab-checking-light-2.png +0 -0
- drowse/web/dist/icons/tab-checking-light-20.png +0 -0
- drowse/web/dist/icons/tab-checking-light-21.png +0 -0
- drowse/web/dist/icons/tab-checking-light-22.png +0 -0
- drowse/web/dist/icons/tab-checking-light-23.png +0 -0
- drowse/web/dist/icons/tab-checking-light-24.png +0 -0
- drowse/web/dist/icons/tab-checking-light-25.png +0 -0
- drowse/web/dist/icons/tab-checking-light-26.png +0 -0
- drowse/web/dist/icons/tab-checking-light-27.png +0 -0
- drowse/web/dist/icons/tab-checking-light-28.png +0 -0
- drowse/web/dist/icons/tab-checking-light-29.png +0 -0
- drowse/web/dist/icons/tab-checking-light-3.png +0 -0
- drowse/web/dist/icons/tab-checking-light-30.png +0 -0
- drowse/web/dist/icons/tab-checking-light-31.png +0 -0
- drowse/web/dist/icons/tab-checking-light-32.png +0 -0
- drowse/web/dist/icons/tab-checking-light-33.png +0 -0
- drowse/web/dist/icons/tab-checking-light-34.png +0 -0
- drowse/web/dist/icons/tab-checking-light-35.png +0 -0
- drowse/web/dist/icons/tab-checking-light-36.png +0 -0
- drowse/web/dist/icons/tab-checking-light-37.png +0 -0
- drowse/web/dist/icons/tab-checking-light-38.png +0 -0
- drowse/web/dist/icons/tab-checking-light-39.png +0 -0
- drowse/web/dist/icons/tab-checking-light-4.png +0 -0
- drowse/web/dist/icons/tab-checking-light-40.png +0 -0
- drowse/web/dist/icons/tab-checking-light-41.png +0 -0
- drowse/web/dist/icons/tab-checking-light-42.png +0 -0
- drowse/web/dist/icons/tab-checking-light-43.png +0 -0
- drowse/web/dist/icons/tab-checking-light-44.png +0 -0
- drowse/web/dist/icons/tab-checking-light-45.png +0 -0
- drowse/web/dist/icons/tab-checking-light-46.png +0 -0
- drowse/web/dist/icons/tab-checking-light-47.png +0 -0
- drowse/web/dist/icons/tab-checking-light-5.png +0 -0
- drowse/web/dist/icons/tab-checking-light-6.png +0 -0
- drowse/web/dist/icons/tab-checking-light-7.png +0 -0
- drowse/web/dist/icons/tab-checking-light-8.png +0 -0
- drowse/web/dist/icons/tab-checking-light-9.png +0 -0
- drowse/web/dist/icons/tab-comparison-dark.png +0 -0
- drowse/web/dist/icons/tab-comparison-light.png +0 -0
- drowse/web/dist/icons/tab-comparison.png +0 -0
- drowse/web/dist/icons/tab-controls-dark.png +0 -0
- drowse/web/dist/icons/tab-controls-light.png +0 -0
- drowse/web/dist/icons/tab-controls.png +0 -0
- drowse/web/dist/icons/tab-conversation-dark.png +0 -0
- drowse/web/dist/icons/tab-conversation-light.png +0 -0
- drowse/web/dist/icons/tab-conversation.png +0 -0
- drowse/web/dist/icons/tab-credits-dark.png +0 -0
- drowse/web/dist/icons/tab-credits-light.png +0 -0
- drowse/web/dist/icons/tab-credits.png +0 -0
- drowse/web/dist/icons/tab-downloading-0.png +0 -0
- drowse/web/dist/icons/tab-downloading-1.png +0 -0
- drowse/web/dist/icons/tab-downloading-2.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-0.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-1.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-10.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-11.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-12.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-13.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-14.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-15.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-16.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-17.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-18.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-19.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-2.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-20.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-21.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-22.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-23.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-24.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-25.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-26.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-27.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-28.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-29.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-3.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-30.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-31.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-32.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-33.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-34.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-35.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-36.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-37.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-38.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-39.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-4.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-40.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-41.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-42.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-43.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-44.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-45.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-46.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-47.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-5.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-6.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-7.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-8.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-9.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-0.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-1.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-10.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-11.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-12.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-13.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-14.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-15.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-16.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-17.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-18.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-19.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-2.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-20.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-21.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-22.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-23.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-24.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-25.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-26.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-27.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-28.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-29.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-3.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-30.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-31.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-32.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-33.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-34.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-35.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-36.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-37.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-38.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-39.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-4.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-40.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-41.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-42.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-43.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-44.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-45.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-46.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-47.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-5.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-6.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-7.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-8.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-9.png +0 -0
- drowse/web/dist/icons/tab-error-dark.png +0 -0
- drowse/web/dist/icons/tab-error-light.png +0 -0
- drowse/web/dist/icons/tab-error.png +0 -0
- drowse/web/dist/icons/tab-home-dark.png +0 -0
- drowse/web/dist/icons/tab-home-light.png +0 -0
- drowse/web/dist/icons/tab-home.png +0 -0
- drowse/web/dist/icons/tab-loading-0.png +0 -0
- drowse/web/dist/icons/tab-loading-1.png +0 -0
- drowse/web/dist/icons/tab-loading-2.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-0.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-1.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-10.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-11.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-12.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-13.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-14.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-15.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-16.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-17.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-18.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-19.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-2.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-20.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-21.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-22.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-23.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-24.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-25.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-26.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-27.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-28.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-29.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-3.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-30.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-31.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-32.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-33.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-34.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-35.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-36.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-37.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-38.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-39.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-4.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-40.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-41.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-42.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-43.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-44.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-45.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-46.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-47.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-5.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-6.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-7.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-8.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-9.png +0 -0
- drowse/web/dist/icons/tab-loading-light-0.png +0 -0
- drowse/web/dist/icons/tab-loading-light-1.png +0 -0
- drowse/web/dist/icons/tab-loading-light-10.png +0 -0
- drowse/web/dist/icons/tab-loading-light-11.png +0 -0
- drowse/web/dist/icons/tab-loading-light-12.png +0 -0
- drowse/web/dist/icons/tab-loading-light-13.png +0 -0
- drowse/web/dist/icons/tab-loading-light-14.png +0 -0
- drowse/web/dist/icons/tab-loading-light-15.png +0 -0
- drowse/web/dist/icons/tab-loading-light-16.png +0 -0
- drowse/web/dist/icons/tab-loading-light-17.png +0 -0
- drowse/web/dist/icons/tab-loading-light-18.png +0 -0
- drowse/web/dist/icons/tab-loading-light-19.png +0 -0
- drowse/web/dist/icons/tab-loading-light-2.png +0 -0
- drowse/web/dist/icons/tab-loading-light-20.png +0 -0
- drowse/web/dist/icons/tab-loading-light-21.png +0 -0
- drowse/web/dist/icons/tab-loading-light-22.png +0 -0
- drowse/web/dist/icons/tab-loading-light-23.png +0 -0
- drowse/web/dist/icons/tab-loading-light-24.png +0 -0
- drowse/web/dist/icons/tab-loading-light-25.png +0 -0
- drowse/web/dist/icons/tab-loading-light-26.png +0 -0
- drowse/web/dist/icons/tab-loading-light-27.png +0 -0
- drowse/web/dist/icons/tab-loading-light-28.png +0 -0
- drowse/web/dist/icons/tab-loading-light-29.png +0 -0
- drowse/web/dist/icons/tab-loading-light-3.png +0 -0
- drowse/web/dist/icons/tab-loading-light-30.png +0 -0
- drowse/web/dist/icons/tab-loading-light-31.png +0 -0
- drowse/web/dist/icons/tab-loading-light-32.png +0 -0
- drowse/web/dist/icons/tab-loading-light-33.png +0 -0
- drowse/web/dist/icons/tab-loading-light-34.png +0 -0
- drowse/web/dist/icons/tab-loading-light-35.png +0 -0
- drowse/web/dist/icons/tab-loading-light-36.png +0 -0
- drowse/web/dist/icons/tab-loading-light-37.png +0 -0
- drowse/web/dist/icons/tab-loading-light-38.png +0 -0
- drowse/web/dist/icons/tab-loading-light-39.png +0 -0
- drowse/web/dist/icons/tab-loading-light-4.png +0 -0
- drowse/web/dist/icons/tab-loading-light-40.png +0 -0
- drowse/web/dist/icons/tab-loading-light-41.png +0 -0
- drowse/web/dist/icons/tab-loading-light-42.png +0 -0
- drowse/web/dist/icons/tab-loading-light-43.png +0 -0
- drowse/web/dist/icons/tab-loading-light-44.png +0 -0
- drowse/web/dist/icons/tab-loading-light-45.png +0 -0
- drowse/web/dist/icons/tab-loading-light-46.png +0 -0
- drowse/web/dist/icons/tab-loading-light-47.png +0 -0
- drowse/web/dist/icons/tab-loading-light-5.png +0 -0
- drowse/web/dist/icons/tab-loading-light-6.png +0 -0
- drowse/web/dist/icons/tab-loading-light-7.png +0 -0
- drowse/web/dist/icons/tab-loading-light-8.png +0 -0
- drowse/web/dist/icons/tab-loading-light-9.png +0 -0
- drowse/web/dist/icons/tab-loom-dark.png +0 -0
- drowse/web/dist/icons/tab-loom-light.png +0 -0
- drowse/web/dist/icons/tab-loom-working-0.png +0 -0
- drowse/web/dist/icons/tab-loom-working-1.png +0 -0
- drowse/web/dist/icons/tab-loom-working-2.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-0.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-1.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-10.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-11.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-12.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-13.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-14.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-15.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-16.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-17.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-18.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-19.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-2.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-20.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-21.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-22.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-23.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-24.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-25.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-26.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-27.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-28.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-29.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-3.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-30.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-31.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-32.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-33.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-34.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-35.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-36.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-37.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-38.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-39.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-4.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-40.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-41.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-42.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-43.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-44.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-45.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-46.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-47.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-5.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-6.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-7.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-8.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-9.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-0.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-1.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-10.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-11.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-12.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-13.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-14.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-15.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-16.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-17.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-18.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-19.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-2.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-20.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-21.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-22.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-23.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-24.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-25.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-26.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-27.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-28.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-29.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-3.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-30.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-31.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-32.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-33.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-34.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-35.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-36.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-37.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-38.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-39.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-4.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-40.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-41.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-42.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-43.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-44.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-45.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-46.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-47.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-5.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-6.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-7.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-8.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-9.png +0 -0
- drowse/web/dist/icons/tab-loom.png +0 -0
- drowse/web/dist/icons/tab-models-dark.png +0 -0
- drowse/web/dist/icons/tab-models-light.png +0 -0
- drowse/web/dist/icons/tab-models.png +0 -0
- drowse/web/dist/icons/tab-offline-dark.png +0 -0
- drowse/web/dist/icons/tab-offline-light.png +0 -0
- drowse/web/dist/icons/tab-offline.png +0 -0
- drowse/web/dist/icons/tab-paused-dark.png +0 -0
- drowse/web/dist/icons/tab-paused-light.png +0 -0
- drowse/web/dist/icons/tab-paused.png +0 -0
- drowse/web/dist/icons/tab-ready-dark.png +0 -0
- drowse/web/dist/icons/tab-ready-light.png +0 -0
- drowse/web/dist/icons/tab-ready.png +0 -0
- drowse/web/dist/icons/tab-saving-0.png +0 -0
- drowse/web/dist/icons/tab-saving-1.png +0 -0
- drowse/web/dist/icons/tab-saving-2.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-0.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-1.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-10.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-11.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-12.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-13.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-14.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-15.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-16.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-17.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-18.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-19.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-2.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-20.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-21.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-22.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-23.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-24.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-25.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-26.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-27.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-28.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-29.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-3.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-30.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-31.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-32.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-33.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-34.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-35.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-36.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-37.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-38.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-39.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-4.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-40.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-41.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-42.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-43.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-44.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-45.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-46.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-47.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-5.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-6.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-7.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-8.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-9.png +0 -0
- drowse/web/dist/icons/tab-saving-light-0.png +0 -0
- drowse/web/dist/icons/tab-saving-light-1.png +0 -0
- drowse/web/dist/icons/tab-saving-light-10.png +0 -0
- drowse/web/dist/icons/tab-saving-light-11.png +0 -0
- drowse/web/dist/icons/tab-saving-light-12.png +0 -0
- drowse/web/dist/icons/tab-saving-light-13.png +0 -0
- drowse/web/dist/icons/tab-saving-light-14.png +0 -0
- drowse/web/dist/icons/tab-saving-light-15.png +0 -0
- drowse/web/dist/icons/tab-saving-light-16.png +0 -0
- drowse/web/dist/icons/tab-saving-light-17.png +0 -0
- drowse/web/dist/icons/tab-saving-light-18.png +0 -0
- drowse/web/dist/icons/tab-saving-light-19.png +0 -0
- drowse/web/dist/icons/tab-saving-light-2.png +0 -0
- drowse/web/dist/icons/tab-saving-light-20.png +0 -0
- drowse/web/dist/icons/tab-saving-light-21.png +0 -0
- drowse/web/dist/icons/tab-saving-light-22.png +0 -0
- drowse/web/dist/icons/tab-saving-light-23.png +0 -0
- drowse/web/dist/icons/tab-saving-light-24.png +0 -0
- drowse/web/dist/icons/tab-saving-light-25.png +0 -0
- drowse/web/dist/icons/tab-saving-light-26.png +0 -0
- drowse/web/dist/icons/tab-saving-light-27.png +0 -0
- drowse/web/dist/icons/tab-saving-light-28.png +0 -0
- drowse/web/dist/icons/tab-saving-light-29.png +0 -0
- drowse/web/dist/icons/tab-saving-light-3.png +0 -0
- drowse/web/dist/icons/tab-saving-light-30.png +0 -0
- drowse/web/dist/icons/tab-saving-light-31.png +0 -0
- drowse/web/dist/icons/tab-saving-light-32.png +0 -0
- drowse/web/dist/icons/tab-saving-light-33.png +0 -0
- drowse/web/dist/icons/tab-saving-light-34.png +0 -0
- drowse/web/dist/icons/tab-saving-light-35.png +0 -0
- drowse/web/dist/icons/tab-saving-light-36.png +0 -0
- drowse/web/dist/icons/tab-saving-light-37.png +0 -0
- drowse/web/dist/icons/tab-saving-light-38.png +0 -0
- drowse/web/dist/icons/tab-saving-light-39.png +0 -0
- drowse/web/dist/icons/tab-saving-light-4.png +0 -0
- drowse/web/dist/icons/tab-saving-light-40.png +0 -0
- drowse/web/dist/icons/tab-saving-light-41.png +0 -0
- drowse/web/dist/icons/tab-saving-light-42.png +0 -0
- drowse/web/dist/icons/tab-saving-light-43.png +0 -0
- drowse/web/dist/icons/tab-saving-light-44.png +0 -0
- drowse/web/dist/icons/tab-saving-light-45.png +0 -0
- drowse/web/dist/icons/tab-saving-light-46.png +0 -0
- drowse/web/dist/icons/tab-saving-light-47.png +0 -0
- drowse/web/dist/icons/tab-saving-light-5.png +0 -0
- drowse/web/dist/icons/tab-saving-light-6.png +0 -0
- drowse/web/dist/icons/tab-saving-light-7.png +0 -0
- drowse/web/dist/icons/tab-saving-light-8.png +0 -0
- drowse/web/dist/icons/tab-saving-light-9.png +0 -0
- drowse/web/dist/icons/tab-thinking-0.png +0 -0
- drowse/web/dist/icons/tab-thinking-1.png +0 -0
- drowse/web/dist/icons/tab-thinking-2.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-0.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-1.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-10.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-11.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-12.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-13.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-14.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-15.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-16.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-17.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-18.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-19.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-2.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-20.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-21.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-22.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-23.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-24.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-25.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-26.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-27.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-28.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-29.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-3.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-30.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-31.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-32.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-33.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-34.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-35.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-36.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-37.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-38.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-39.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-4.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-40.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-41.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-42.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-43.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-44.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-45.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-46.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-47.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-5.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-6.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-7.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-8.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-9.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-0.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-1.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-10.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-11.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-12.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-13.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-14.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-15.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-16.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-17.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-18.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-19.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-2.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-20.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-21.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-22.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-23.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-24.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-25.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-26.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-27.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-28.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-29.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-3.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-30.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-31.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-32.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-33.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-34.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-35.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-36.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-37.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-38.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-39.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-4.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-40.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-41.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-42.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-43.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-44.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-45.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-46.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-47.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-5.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-6.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-7.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-8.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-9.png +0 -0
- drowse/web/dist/icons/tab-tokens-dark.png +0 -0
- drowse/web/dist/icons/tab-tokens-light.png +0 -0
- drowse/web/dist/icons/tab-tokens.png +0 -0
- drowse/web/dist/icons/tab-training-0.png +0 -0
- drowse/web/dist/icons/tab-training-1.png +0 -0
- drowse/web/dist/icons/tab-training-2.png +0 -0
- drowse/web/dist/icons/tab-training-dark-0.png +0 -0
- drowse/web/dist/icons/tab-training-dark-1.png +0 -0
- drowse/web/dist/icons/tab-training-dark-10.png +0 -0
- drowse/web/dist/icons/tab-training-dark-11.png +0 -0
- drowse/web/dist/icons/tab-training-dark-12.png +0 -0
- drowse/web/dist/icons/tab-training-dark-13.png +0 -0
- drowse/web/dist/icons/tab-training-dark-14.png +0 -0
- drowse/web/dist/icons/tab-training-dark-15.png +0 -0
- drowse/web/dist/icons/tab-training-dark-16.png +0 -0
- drowse/web/dist/icons/tab-training-dark-17.png +0 -0
- drowse/web/dist/icons/tab-training-dark-18.png +0 -0
- drowse/web/dist/icons/tab-training-dark-19.png +0 -0
- drowse/web/dist/icons/tab-training-dark-2.png +0 -0
- drowse/web/dist/icons/tab-training-dark-20.png +0 -0
- drowse/web/dist/icons/tab-training-dark-21.png +0 -0
- drowse/web/dist/icons/tab-training-dark-22.png +0 -0
- drowse/web/dist/icons/tab-training-dark-23.png +0 -0
- drowse/web/dist/icons/tab-training-dark-24.png +0 -0
- drowse/web/dist/icons/tab-training-dark-25.png +0 -0
- drowse/web/dist/icons/tab-training-dark-26.png +0 -0
- drowse/web/dist/icons/tab-training-dark-27.png +0 -0
- drowse/web/dist/icons/tab-training-dark-28.png +0 -0
- drowse/web/dist/icons/tab-training-dark-29.png +0 -0
- drowse/web/dist/icons/tab-training-dark-3.png +0 -0
- drowse/web/dist/icons/tab-training-dark-30.png +0 -0
- drowse/web/dist/icons/tab-training-dark-31.png +0 -0
- drowse/web/dist/icons/tab-training-dark-32.png +0 -0
- drowse/web/dist/icons/tab-training-dark-33.png +0 -0
- drowse/web/dist/icons/tab-training-dark-34.png +0 -0
- drowse/web/dist/icons/tab-training-dark-35.png +0 -0
- drowse/web/dist/icons/tab-training-dark-36.png +0 -0
- drowse/web/dist/icons/tab-training-dark-37.png +0 -0
- drowse/web/dist/icons/tab-training-dark-38.png +0 -0
- drowse/web/dist/icons/tab-training-dark-39.png +0 -0
- drowse/web/dist/icons/tab-training-dark-4.png +0 -0
- drowse/web/dist/icons/tab-training-dark-40.png +0 -0
- drowse/web/dist/icons/tab-training-dark-41.png +0 -0
- drowse/web/dist/icons/tab-training-dark-42.png +0 -0
- drowse/web/dist/icons/tab-training-dark-43.png +0 -0
- drowse/web/dist/icons/tab-training-dark-44.png +0 -0
- drowse/web/dist/icons/tab-training-dark-45.png +0 -0
- drowse/web/dist/icons/tab-training-dark-46.png +0 -0
- drowse/web/dist/icons/tab-training-dark-47.png +0 -0
- drowse/web/dist/icons/tab-training-dark-5.png +0 -0
- drowse/web/dist/icons/tab-training-dark-6.png +0 -0
- drowse/web/dist/icons/tab-training-dark-7.png +0 -0
- drowse/web/dist/icons/tab-training-dark-8.png +0 -0
- drowse/web/dist/icons/tab-training-dark-9.png +0 -0
- drowse/web/dist/icons/tab-training-light-0.png +0 -0
- drowse/web/dist/icons/tab-training-light-1.png +0 -0
- drowse/web/dist/icons/tab-training-light-10.png +0 -0
- drowse/web/dist/icons/tab-training-light-11.png +0 -0
- drowse/web/dist/icons/tab-training-light-12.png +0 -0
- drowse/web/dist/icons/tab-training-light-13.png +0 -0
- drowse/web/dist/icons/tab-training-light-14.png +0 -0
- drowse/web/dist/icons/tab-training-light-15.png +0 -0
- drowse/web/dist/icons/tab-training-light-16.png +0 -0
- drowse/web/dist/icons/tab-training-light-17.png +0 -0
- drowse/web/dist/icons/tab-training-light-18.png +0 -0
- drowse/web/dist/icons/tab-training-light-19.png +0 -0
- drowse/web/dist/icons/tab-training-light-2.png +0 -0
- drowse/web/dist/icons/tab-training-light-20.png +0 -0
- drowse/web/dist/icons/tab-training-light-21.png +0 -0
- drowse/web/dist/icons/tab-training-light-22.png +0 -0
- drowse/web/dist/icons/tab-training-light-23.png +0 -0
- drowse/web/dist/icons/tab-training-light-24.png +0 -0
- drowse/web/dist/icons/tab-training-light-25.png +0 -0
- drowse/web/dist/icons/tab-training-light-26.png +0 -0
- drowse/web/dist/icons/tab-training-light-27.png +0 -0
- drowse/web/dist/icons/tab-training-light-28.png +0 -0
- drowse/web/dist/icons/tab-training-light-29.png +0 -0
- drowse/web/dist/icons/tab-training-light-3.png +0 -0
- drowse/web/dist/icons/tab-training-light-30.png +0 -0
- drowse/web/dist/icons/tab-training-light-31.png +0 -0
- drowse/web/dist/icons/tab-training-light-32.png +0 -0
- drowse/web/dist/icons/tab-training-light-33.png +0 -0
- drowse/web/dist/icons/tab-training-light-34.png +0 -0
- drowse/web/dist/icons/tab-training-light-35.png +0 -0
- drowse/web/dist/icons/tab-training-light-36.png +0 -0
- drowse/web/dist/icons/tab-training-light-37.png +0 -0
- drowse/web/dist/icons/tab-training-light-38.png +0 -0
- drowse/web/dist/icons/tab-training-light-39.png +0 -0
- drowse/web/dist/icons/tab-training-light-4.png +0 -0
- drowse/web/dist/icons/tab-training-light-40.png +0 -0
- drowse/web/dist/icons/tab-training-light-41.png +0 -0
- drowse/web/dist/icons/tab-training-light-42.png +0 -0
- drowse/web/dist/icons/tab-training-light-43.png +0 -0
- drowse/web/dist/icons/tab-training-light-44.png +0 -0
- drowse/web/dist/icons/tab-training-light-45.png +0 -0
- drowse/web/dist/icons/tab-training-light-46.png +0 -0
- drowse/web/dist/icons/tab-training-light-47.png +0 -0
- drowse/web/dist/icons/tab-training-light-5.png +0 -0
- drowse/web/dist/icons/tab-training-light-6.png +0 -0
- drowse/web/dist/icons/tab-training-light-7.png +0 -0
- drowse/web/dist/icons/tab-training-light-8.png +0 -0
- drowse/web/dist/icons/tab-training-light-9.png +0 -0
- drowse/web/dist/icons/tab-unsupported-dark.png +0 -0
- drowse/web/dist/icons/tab-unsupported-light.png +0 -0
- drowse/web/dist/icons/tab-unsupported.png +0 -0
- drowse/web/dist/icons/tab-working-0.png +0 -0
- drowse/web/dist/icons/tab-working-1.png +0 -0
- drowse/web/dist/icons/tab-working-2.png +0 -0
- drowse/web/dist/icons/tab-working-dark-0.png +0 -0
- drowse/web/dist/icons/tab-working-dark-1.png +0 -0
- drowse/web/dist/icons/tab-working-dark-10.png +0 -0
- drowse/web/dist/icons/tab-working-dark-11.png +0 -0
- drowse/web/dist/icons/tab-working-dark-12.png +0 -0
- drowse/web/dist/icons/tab-working-dark-13.png +0 -0
- drowse/web/dist/icons/tab-working-dark-14.png +0 -0
- drowse/web/dist/icons/tab-working-dark-15.png +0 -0
- drowse/web/dist/icons/tab-working-dark-16.png +0 -0
- drowse/web/dist/icons/tab-working-dark-17.png +0 -0
- drowse/web/dist/icons/tab-working-dark-18.png +0 -0
- drowse/web/dist/icons/tab-working-dark-19.png +0 -0
- drowse/web/dist/icons/tab-working-dark-2.png +0 -0
- drowse/web/dist/icons/tab-working-dark-20.png +0 -0
- drowse/web/dist/icons/tab-working-dark-21.png +0 -0
- drowse/web/dist/icons/tab-working-dark-22.png +0 -0
- drowse/web/dist/icons/tab-working-dark-23.png +0 -0
- drowse/web/dist/icons/tab-working-dark-24.png +0 -0
- drowse/web/dist/icons/tab-working-dark-25.png +0 -0
- drowse/web/dist/icons/tab-working-dark-26.png +0 -0
- drowse/web/dist/icons/tab-working-dark-27.png +0 -0
- drowse/web/dist/icons/tab-working-dark-28.png +0 -0
- drowse/web/dist/icons/tab-working-dark-29.png +0 -0
- drowse/web/dist/icons/tab-working-dark-3.png +0 -0
- drowse/web/dist/icons/tab-working-dark-30.png +0 -0
- drowse/web/dist/icons/tab-working-dark-31.png +0 -0
- drowse/web/dist/icons/tab-working-dark-32.png +0 -0
- drowse/web/dist/icons/tab-working-dark-33.png +0 -0
- drowse/web/dist/icons/tab-working-dark-34.png +0 -0
- drowse/web/dist/icons/tab-working-dark-35.png +0 -0
- drowse/web/dist/icons/tab-working-dark-36.png +0 -0
- drowse/web/dist/icons/tab-working-dark-37.png +0 -0
- drowse/web/dist/icons/tab-working-dark-38.png +0 -0
- drowse/web/dist/icons/tab-working-dark-39.png +0 -0
- drowse/web/dist/icons/tab-working-dark-4.png +0 -0
- drowse/web/dist/icons/tab-working-dark-40.png +0 -0
- drowse/web/dist/icons/tab-working-dark-41.png +0 -0
- drowse/web/dist/icons/tab-working-dark-42.png +0 -0
- drowse/web/dist/icons/tab-working-dark-43.png +0 -0
- drowse/web/dist/icons/tab-working-dark-44.png +0 -0
- drowse/web/dist/icons/tab-working-dark-45.png +0 -0
- drowse/web/dist/icons/tab-working-dark-46.png +0 -0
- drowse/web/dist/icons/tab-working-dark-47.png +0 -0
- drowse/web/dist/icons/tab-working-dark-5.png +0 -0
- drowse/web/dist/icons/tab-working-dark-6.png +0 -0
- drowse/web/dist/icons/tab-working-dark-7.png +0 -0
- drowse/web/dist/icons/tab-working-dark-8.png +0 -0
- drowse/web/dist/icons/tab-working-dark-9.png +0 -0
- drowse/web/dist/icons/tab-working-light-0.png +0 -0
- drowse/web/dist/icons/tab-working-light-1.png +0 -0
- drowse/web/dist/icons/tab-working-light-10.png +0 -0
- drowse/web/dist/icons/tab-working-light-11.png +0 -0
- drowse/web/dist/icons/tab-working-light-12.png +0 -0
- drowse/web/dist/icons/tab-working-light-13.png +0 -0
- drowse/web/dist/icons/tab-working-light-14.png +0 -0
- drowse/web/dist/icons/tab-working-light-15.png +0 -0
- drowse/web/dist/icons/tab-working-light-16.png +0 -0
- drowse/web/dist/icons/tab-working-light-17.png +0 -0
- drowse/web/dist/icons/tab-working-light-18.png +0 -0
- drowse/web/dist/icons/tab-working-light-19.png +0 -0
- drowse/web/dist/icons/tab-working-light-2.png +0 -0
- drowse/web/dist/icons/tab-working-light-20.png +0 -0
- drowse/web/dist/icons/tab-working-light-21.png +0 -0
- drowse/web/dist/icons/tab-working-light-22.png +0 -0
- drowse/web/dist/icons/tab-working-light-23.png +0 -0
- drowse/web/dist/icons/tab-working-light-24.png +0 -0
- drowse/web/dist/icons/tab-working-light-25.png +0 -0
- drowse/web/dist/icons/tab-working-light-26.png +0 -0
- drowse/web/dist/icons/tab-working-light-27.png +0 -0
- drowse/web/dist/icons/tab-working-light-28.png +0 -0
- drowse/web/dist/icons/tab-working-light-29.png +0 -0
- drowse/web/dist/icons/tab-working-light-3.png +0 -0
- drowse/web/dist/icons/tab-working-light-30.png +0 -0
- drowse/web/dist/icons/tab-working-light-31.png +0 -0
- drowse/web/dist/icons/tab-working-light-32.png +0 -0
- drowse/web/dist/icons/tab-working-light-33.png +0 -0
- drowse/web/dist/icons/tab-working-light-34.png +0 -0
- drowse/web/dist/icons/tab-working-light-35.png +0 -0
- drowse/web/dist/icons/tab-working-light-36.png +0 -0
- drowse/web/dist/icons/tab-working-light-37.png +0 -0
- drowse/web/dist/icons/tab-working-light-38.png +0 -0
- drowse/web/dist/icons/tab-working-light-39.png +0 -0
- drowse/web/dist/icons/tab-working-light-4.png +0 -0
- drowse/web/dist/icons/tab-working-light-40.png +0 -0
- drowse/web/dist/icons/tab-working-light-41.png +0 -0
- drowse/web/dist/icons/tab-working-light-42.png +0 -0
- drowse/web/dist/icons/tab-working-light-43.png +0 -0
- drowse/web/dist/icons/tab-working-light-44.png +0 -0
- drowse/web/dist/icons/tab-working-light-45.png +0 -0
- drowse/web/dist/icons/tab-working-light-46.png +0 -0
- drowse/web/dist/icons/tab-working-light-47.png +0 -0
- drowse/web/dist/icons/tab-working-light-5.png +0 -0
- drowse/web/dist/icons/tab-working-light-6.png +0 -0
- drowse/web/dist/icons/tab-working-light-7.png +0 -0
- drowse/web/dist/icons/tab-working-light-8.png +0 -0
- drowse/web/dist/icons/tab-working-light-9.png +0 -0
- drowse/web/dist/index.html +34 -0
- drowse/web/dist/social/drowse.png +0 -0
- drowse/web/dist/social/drowse.svg +6 -0
- drowse/web/dist/theme-init.js +25 -0
- drowse/web/routes.py +118 -0
- drowse_ai-5.3.1.dist-info/METADATA +632 -0
- drowse_ai-5.3.1.dist-info/RECORD +1341 -0
- drowse_ai-5.3.1.dist-info/WHEEL +5 -0
- drowse_ai-5.3.1.dist-info/entry_points.txt +2 -0
- drowse_ai-5.3.1.dist-info/licenses/LICENSE +661 -0
- drowse_ai-5.3.1.dist-info/top_level.txt +1 -0
drowse/core/jlens.py
ADDED
|
@@ -0,0 +1,874 @@
|
|
|
1
|
+
"""Jacobian lens artifact + readout: transport, readout math, decomposition.
|
|
2
|
+
|
|
3
|
+
Implements the Jacobian lens of Gurnee et al., "Verbalizable Representations
|
|
4
|
+
Form a Global Workspace in Language Models" (Transformer Circuits, 2026):
|
|
5
|
+
per-layer matrices ``J_l = E[∂h_final/∂h_l]`` — the average first-order effect
|
|
6
|
+
of a layer-l residual on the final-layer residual, over positions and a text
|
|
7
|
+
corpus. ``lens(h) = softmax(W_U · norm(J_l h))`` ranks
|
|
8
|
+
the vocabulary by what an activation is disposed to make the model say; the
|
|
9
|
+
J-lens *direction* for vocab id v at layer l is ``W_U[v] @ J_l`` — a per-layer
|
|
10
|
+
d-vector with the same shape contract as any drowse steering direction, which
|
|
11
|
+
is what lets a ``jlens/<word>`` term ride the ordinary profile registry.
|
|
12
|
+
|
|
13
|
+
This module holds everything on a runtime path: the :class:`JacobianLens`
|
|
14
|
+
artifact (transport, token directions, merge/union), the readout math every
|
|
15
|
+
probe / live-workspace / token-replay surface calls per decode step, and the
|
|
16
|
+
J-space decomposition. It imports nothing beyond torch and the error
|
|
17
|
+
taxonomy, so a per-step import costs a ``sys.modules`` lookup.
|
|
18
|
+
|
|
19
|
+
The **estimator** — the only backward-pass code in drowse — lives in
|
|
20
|
+
:mod:`drowse.core.jlens_fit`. ``fit_jacobian_lens`` remains reachable as
|
|
21
|
+
``drowse.core.jlens.fit_jacobian_lens`` through a lazy module ``__getattr__``,
|
|
22
|
+
so importing this module never drags the estimator in.
|
|
23
|
+
|
|
24
|
+
One unit runs through every readout surface: the per-layer softmax probability
|
|
25
|
+
``p_l(v)``. ``readout_probabilities`` is the single calibration primitive; a
|
|
26
|
+
token's ``strength`` is ``mean_l p_l(v)`` and its depth center of mass is
|
|
27
|
+
weighted by the same ``p_l``, so per-layer cards, pinned probes, gate scalars,
|
|
28
|
+
and the layer aggregate are all apples-to-apples.
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
from __future__ import annotations
|
|
32
|
+
|
|
33
|
+
from collections.abc import Mapping, Sequence
|
|
34
|
+
from typing import Any
|
|
35
|
+
|
|
36
|
+
import torch
|
|
37
|
+
from torch import nn
|
|
38
|
+
|
|
39
|
+
from drowse.core.errors import DrowseError
|
|
40
|
+
|
|
41
|
+
#: Positions before this index are excluded from the Jacobian average — early
|
|
42
|
+
#: positions act as attention sinks with atypical residual statistics. Part of
|
|
43
|
+
#: the corpus-spec identity the sidecar records, so it lives with the artifact
|
|
44
|
+
#: rather than the estimator.
|
|
45
|
+
SKIP_FIRST_POSITIONS = 16
|
|
46
|
+
DEFAULT_SEQ_LEN = 128
|
|
47
|
+
#: Output dims per backward pass. Total backward FLOPs are dim_batch-invariant
|
|
48
|
+
#: (pass count halves as pass width doubles), so this knob trades memory for
|
|
49
|
+
#: per-pass overhead and barely moves wall time — measured on an M5 Max /
|
|
50
|
+
#: gemma-3-4b, 8 is the sweet spot (93.6s/prompt vs 96.9s at 32, 102.5s at
|
|
51
|
+
#: 64, identical output). Halves automatically on OOM.
|
|
52
|
+
DEFAULT_DIM_BATCH = 8
|
|
53
|
+
# Consecutive corpus prompts per autograd graph on CPU/CUDA. Their Jacobians
|
|
54
|
+
# remain equal-prompt weighted (not equal-token weighted). MPS defaults to two
|
|
55
|
+
# after the M5 Max / gemma-3-4b sweep measured 1.72x over one with unchanged
|
|
56
|
+
# peak RSS. OOM backoff reduces this independently of ``dim_batch``.
|
|
57
|
+
DEFAULT_PROMPT_BATCH = 4
|
|
58
|
+
DEFAULT_MPS_PROMPT_BATCH = 2
|
|
59
|
+
#: Checkpoint cadence (prompts) for resumable fits.
|
|
60
|
+
DEFAULT_CHECKPOINT_EVERY = 25
|
|
61
|
+
|
|
62
|
+
# The fit-configuration defaults above stay with the artifact: io/cli/session
|
|
63
|
+
# read them to stamp and validate sidecars without wanting the estimator, and
|
|
64
|
+
# they are plain ints, so keeping them here costs the split nothing.
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
class JacobianLensError(RuntimeError, DrowseError):
|
|
68
|
+
"""Raised when a Jacobian-lens fit or readout cannot proceed."""
|
|
69
|
+
|
|
70
|
+
def user_message(self) -> tuple[int, str]:
|
|
71
|
+
return (422, str(self) or self.__class__.__name__)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
class LensNotFittedError(JacobianLensError):
|
|
75
|
+
"""Raised when a lens artifact is required but absent for the model."""
|
|
76
|
+
|
|
77
|
+
def user_message(self) -> tuple[int, str]:
|
|
78
|
+
return (404, str(self) or self.__class__.__name__)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
class JacobianLensCancelled(JacobianLensError):
|
|
82
|
+
"""Raised after a cooperative stop at a safe estimator boundary."""
|
|
83
|
+
|
|
84
|
+
def user_message(self) -> tuple[int, str]:
|
|
85
|
+
return (409, str(self) or "Jacobian-lens fit cancelled")
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
class MultiTokenWordError(ValueError, DrowseError):
|
|
89
|
+
"""Raised when a ``jlens/<word>`` atom has no single-token vocabulary id."""
|
|
90
|
+
|
|
91
|
+
def user_message(self) -> tuple[int, str]:
|
|
92
|
+
return (400, str(self) or self.__class__.__name__)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
def resolve_word_token(tokenizer: Any, word: str) -> int:
|
|
96
|
+
"""Map a word to the single vocab id its J-lens direction should use.
|
|
97
|
+
|
|
98
|
+
Tries the leading-space piece first (``"▁word"``/``"Ġword"`` — the form
|
|
99
|
+
the model actually emits in running text), then the bare piece. A
|
|
100
|
+
candidate only counts when it round-trips: ``decode([id]).strip()`` must
|
|
101
|
+
equal the word, so a normalizing tokenizer can't silently match a merge
|
|
102
|
+
artifact. Raises :class:`MultiTokenWordError` (listing the pieces) when
|
|
103
|
+
neither form is a single token.
|
|
104
|
+
"""
|
|
105
|
+
pieces: list[str] = []
|
|
106
|
+
for cand in (f" {word}", word):
|
|
107
|
+
ids = tokenizer.encode(cand, add_special_tokens=False)
|
|
108
|
+
if len(ids) == 1 and tokenizer.decode(ids).strip() == word:
|
|
109
|
+
return int(ids[0])
|
|
110
|
+
if not pieces and len(ids) > 1:
|
|
111
|
+
pieces = [tokenizer.decode([i]) for i in ids]
|
|
112
|
+
raise MultiTokenWordError(
|
|
113
|
+
f"{word!r} is not a single token in this vocabulary"
|
|
114
|
+
+ (f" (pieces: {pieces})" if pieces else "")
|
|
115
|
+
+ " — the Jacobian lens can only address single-token words"
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
class JacobianLens:
|
|
120
|
+
"""Fitted per-layer ``J_l`` matrices plus the readout primitives.
|
|
121
|
+
|
|
122
|
+
``jacobians`` maps source layer index → ``[d_model, d_model]`` fp32
|
|
123
|
+
matrix transporting that layer's residual into the final-layer basis.
|
|
124
|
+
"""
|
|
125
|
+
|
|
126
|
+
def __init__(
|
|
127
|
+
self,
|
|
128
|
+
jacobians: Mapping[int, torch.Tensor],
|
|
129
|
+
*,
|
|
130
|
+
n_prompts: int,
|
|
131
|
+
d_model: int,
|
|
132
|
+
) -> None:
|
|
133
|
+
self.jacobians = {int(l): j.to(torch.float32) for l, j in jacobians.items()}
|
|
134
|
+
self.source_layers = sorted(self.jacobians)
|
|
135
|
+
self.n_prompts = int(n_prompts)
|
|
136
|
+
self.d_model = int(d_model)
|
|
137
|
+
self._atom_norm_cache: dict[tuple[int, str, str, int, tuple[int, ...]], torch.Tensor] = {}
|
|
138
|
+
|
|
139
|
+
def __repr__(self) -> str:
|
|
140
|
+
span = (
|
|
141
|
+
f"[{self.source_layers[0]}..{self.source_layers[-1]}]"
|
|
142
|
+
if self.source_layers
|
|
143
|
+
else "[]"
|
|
144
|
+
)
|
|
145
|
+
return (
|
|
146
|
+
f"JacobianLens(d_model={self.d_model}, n_prompts={self.n_prompts}, "
|
|
147
|
+
f"source_layers={span} ({len(self.source_layers)} layers))"
|
|
148
|
+
)
|
|
149
|
+
|
|
150
|
+
def transport(self, hidden: torch.Tensor, layer: int) -> torch.Tensor:
|
|
151
|
+
"""Map a layer-``layer`` residual ``[..., d]`` into the final basis."""
|
|
152
|
+
if layer not in self.jacobians:
|
|
153
|
+
raise LensNotFittedError(
|
|
154
|
+
f"layer {layer} not in fitted lens layers "
|
|
155
|
+
f"{self.source_layers[:3]}..{self.source_layers[-3:]}"
|
|
156
|
+
)
|
|
157
|
+
J = self.jacobians[layer].to(hidden.device)
|
|
158
|
+
return hidden.to(torch.float32) @ J.T
|
|
159
|
+
|
|
160
|
+
def token_direction(
|
|
161
|
+
self,
|
|
162
|
+
token_id: int,
|
|
163
|
+
unembed: torch.Tensor,
|
|
164
|
+
*,
|
|
165
|
+
layers: Sequence[int] | None = None,
|
|
166
|
+
output_projection: torch.Tensor | None = None,
|
|
167
|
+
) -> dict[int, torch.Tensor]:
|
|
168
|
+
"""Per-layer J-lens direction for one vocab id: ``W_U[v] @ J_l``.
|
|
169
|
+
|
|
170
|
+
Returns fp32 CPU tensors in the ``dict[int, Tensor]`` shape every
|
|
171
|
+
drowse profile consumer (``fold_directions_to_subspace``,
|
|
172
|
+
``Profile``) expects. With an output projection P (OPT), use
|
|
173
|
+
``W_U[v] @ P @ J_l`` without materializing the full vocabulary map.
|
|
174
|
+
"""
|
|
175
|
+
w = unembed[token_id].detach().to(torch.float32).cpu()
|
|
176
|
+
if output_projection is not None:
|
|
177
|
+
w = w @ output_projection.detach().to(device="cpu", dtype=torch.float32)
|
|
178
|
+
requested = self.source_layers if layers is None else [int(l) for l in layers]
|
|
179
|
+
missing = [l for l in requested if l not in self.jacobians]
|
|
180
|
+
if missing:
|
|
181
|
+
raise LensNotFittedError(
|
|
182
|
+
f"layers {missing} not in fitted lens layers "
|
|
183
|
+
f"{self.source_layers[:3]}..{self.source_layers[-3:]}"
|
|
184
|
+
)
|
|
185
|
+
return {l: w @ self.jacobians[l] for l in requested}
|
|
186
|
+
|
|
187
|
+
def select_layers(self, layers: Sequence[int]) -> "JacobianLens":
|
|
188
|
+
"""Return a view-like lens containing only ``layers``.
|
|
189
|
+
|
|
190
|
+
The tensors are shared with ``self``; callers that persist the result
|
|
191
|
+
will materialize their own fp32 shard through ``save_lens``.
|
|
192
|
+
"""
|
|
193
|
+
requested = sorted(set(int(l) for l in layers))
|
|
194
|
+
missing = [l for l in requested if l not in self.jacobians]
|
|
195
|
+
if missing:
|
|
196
|
+
raise LensNotFittedError(
|
|
197
|
+
f"layers {missing} not in fitted lens layers "
|
|
198
|
+
f"{self.source_layers[:3]}..{self.source_layers[-3:]}"
|
|
199
|
+
)
|
|
200
|
+
return JacobianLens(
|
|
201
|
+
{layer: self.jacobians[layer] for layer in requested},
|
|
202
|
+
n_prompts=self.n_prompts,
|
|
203
|
+
d_model=self.d_model,
|
|
204
|
+
)
|
|
205
|
+
|
|
206
|
+
def atom_norms(self, layer: int, unembed: torch.Tensor) -> torch.Tensor:
|
|
207
|
+
"""Cached per-token norms of the layer's J-lens dictionary atoms."""
|
|
208
|
+
if layer not in self.jacobians:
|
|
209
|
+
raise LensNotFittedError(
|
|
210
|
+
f"layer {layer} not in fitted lens layers "
|
|
211
|
+
f"{self.source_layers[:3]}..{self.source_layers[-3:]}"
|
|
212
|
+
)
|
|
213
|
+
key = (
|
|
214
|
+
int(layer),
|
|
215
|
+
str(unembed.device),
|
|
216
|
+
str(unembed.dtype),
|
|
217
|
+
int(unembed.data_ptr()),
|
|
218
|
+
tuple(int(x) for x in unembed.shape),
|
|
219
|
+
)
|
|
220
|
+
cached = self._atom_norm_cache.get(key)
|
|
221
|
+
if cached is not None:
|
|
222
|
+
return cached
|
|
223
|
+
norms = _atom_norms(
|
|
224
|
+
self.jacobians[layer].to(device=unembed.device, dtype=torch.float32),
|
|
225
|
+
unembed,
|
|
226
|
+
)
|
|
227
|
+
self._atom_norm_cache[key] = norms
|
|
228
|
+
return norms
|
|
229
|
+
|
|
230
|
+
@classmethod
|
|
231
|
+
def merge(cls, lenses: Sequence["JacobianLens"]) -> "JacobianLens":
|
|
232
|
+
"""Combine lenses fitted on disjoint prompt subsets
|
|
233
|
+
(``n_prompts``-weighted mean)."""
|
|
234
|
+
if not lenses:
|
|
235
|
+
raise ValueError("merge() needs at least one lens")
|
|
236
|
+
first = lenses[0]
|
|
237
|
+
for other in lenses[1:]:
|
|
238
|
+
if (
|
|
239
|
+
other.source_layers != first.source_layers
|
|
240
|
+
or other.d_model != first.d_model
|
|
241
|
+
):
|
|
242
|
+
raise ValueError("lenses disagree on source_layers / d_model")
|
|
243
|
+
total = sum(lens.n_prompts for lens in lenses)
|
|
244
|
+
if total <= 0:
|
|
245
|
+
raise ValueError("merge() needs lenses with n_prompts > 0")
|
|
246
|
+
merged: dict[int, torch.Tensor] = {}
|
|
247
|
+
for layer in first.source_layers:
|
|
248
|
+
acc = first.jacobians[layer].clone().mul_(first.n_prompts / total)
|
|
249
|
+
for lens in lenses[1:]:
|
|
250
|
+
acc.add_(lens.jacobians[layer], alpha=lens.n_prompts / total)
|
|
251
|
+
merged[layer] = acc
|
|
252
|
+
return cls(merged, n_prompts=total, d_model=first.d_model)
|
|
253
|
+
|
|
254
|
+
@classmethod
|
|
255
|
+
def merge_into(
|
|
256
|
+
cls, lenses: Sequence["JacobianLens"], *, target: int = -1,
|
|
257
|
+
) -> "JacobianLens":
|
|
258
|
+
"""Prompt-weighted merge using one caller-owned lens as the destination.
|
|
259
|
+
|
|
260
|
+
Resume fitting owns the newly fitted tail, so allocating another complete
|
|
261
|
+
fp32 artifact at final merge only multiplies peak RAM. This explicit
|
|
262
|
+
mutating variant preserves :meth:`merge`'s non-mutating public behavior
|
|
263
|
+
while letting orchestration recycle that tail in place.
|
|
264
|
+
"""
|
|
265
|
+
if not lenses:
|
|
266
|
+
raise ValueError("merge_into() needs at least one lens")
|
|
267
|
+
first = lenses[0]
|
|
268
|
+
for other in lenses[1:]:
|
|
269
|
+
if (
|
|
270
|
+
other.source_layers != first.source_layers
|
|
271
|
+
or other.d_model != first.d_model
|
|
272
|
+
):
|
|
273
|
+
raise ValueError("lenses disagree on source_layers / d_model")
|
|
274
|
+
total = sum(lens.n_prompts for lens in lenses)
|
|
275
|
+
if total <= 0:
|
|
276
|
+
raise ValueError("merge_into() needs lenses with n_prompts > 0")
|
|
277
|
+
owner = lenses[target]
|
|
278
|
+
owner_weight = owner.n_prompts / total
|
|
279
|
+
for layer in owner.source_layers:
|
|
280
|
+
dst = owner.jacobians[layer]
|
|
281
|
+
dst.mul_(owner_weight)
|
|
282
|
+
for lens in lenses:
|
|
283
|
+
if lens is owner:
|
|
284
|
+
continue
|
|
285
|
+
dst.add_(lens.jacobians[layer], alpha=lens.n_prompts / total)
|
|
286
|
+
owner.n_prompts = total
|
|
287
|
+
owner._atom_norm_cache.clear()
|
|
288
|
+
return owner
|
|
289
|
+
|
|
290
|
+
@classmethod
|
|
291
|
+
def union_layers(cls, lenses: Sequence["JacobianLens"]) -> "JacobianLens":
|
|
292
|
+
"""Combine same-corpus lenses that cover different source layers.
|
|
293
|
+
|
|
294
|
+
Unlike :meth:`merge`, this is not a prompt-weighted average; every input
|
|
295
|
+
must describe the same prompt set and ``d_model``. Later inputs replace
|
|
296
|
+
duplicate layers, which lets a missing-layer top-up overwrite a stale
|
|
297
|
+
partial layer cleanly.
|
|
298
|
+
"""
|
|
299
|
+
if not lenses:
|
|
300
|
+
raise ValueError("union_layers() needs at least one lens")
|
|
301
|
+
first = lenses[0]
|
|
302
|
+
for other in lenses[1:]:
|
|
303
|
+
if other.n_prompts != first.n_prompts or other.d_model != first.d_model:
|
|
304
|
+
raise ValueError("lenses disagree on n_prompts / d_model")
|
|
305
|
+
union: dict[int, torch.Tensor] = {}
|
|
306
|
+
for lens in lenses:
|
|
307
|
+
union.update(lens.jacobians)
|
|
308
|
+
return cls(union, n_prompts=first.n_prompts, d_model=first.d_model)
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
def softcap_logits(logits: torch.Tensor, cap: float | None) -> torch.Tensor:
|
|
312
|
+
if cap is None:
|
|
313
|
+
return logits
|
|
314
|
+
return (logits / cap).tanh() * cap
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
def lens_logits(
|
|
318
|
+
lens: JacobianLens,
|
|
319
|
+
hidden_per_layer: Mapping[int, torch.Tensor],
|
|
320
|
+
*,
|
|
321
|
+
unembed: torch.Tensor,
|
|
322
|
+
final_norm: nn.Module,
|
|
323
|
+
logit_softcap: float | None = None,
|
|
324
|
+
layers: Sequence[int] | None = None,
|
|
325
|
+
readout: nn.Module | None = None,
|
|
326
|
+
) -> dict[int, torch.Tensor]:
|
|
327
|
+
"""Full-vocabulary lens readout ``W_U · norm(J_l h)`` per requested layer.
|
|
328
|
+
|
|
329
|
+
``hidden_per_layer`` maps layer index → residual ``[..., d]``. The matvec
|
|
330
|
+
runs in the unembedding's own dtype (a fp32 copy of a ~256k-row W_U would
|
|
331
|
+
be gigabytes); ranking precision matches the model's own logit path.
|
|
332
|
+
Returns fp32 logits ``[..., vocab]`` per layer, on the unembed's device.
|
|
333
|
+
Pass ``LogitReadout(model)`` as ``readout`` for model-specific bias,
|
|
334
|
+
projection, and calibration; the default is the supplied matrix/norm path.
|
|
335
|
+
"""
|
|
336
|
+
requested = list(layers) if layers is not None else lens.source_layers
|
|
337
|
+
out: dict[int, torch.Tensor] = {}
|
|
338
|
+
for layer in requested:
|
|
339
|
+
h = hidden_per_layer[layer]
|
|
340
|
+
transported = lens.transport(h.to(unembed.device), layer)
|
|
341
|
+
if readout is not None:
|
|
342
|
+
out[layer] = readout(transported).float()
|
|
343
|
+
else:
|
|
344
|
+
normed = final_norm(transported.to(unembed.dtype))
|
|
345
|
+
out[layer] = softcap_logits(normed.to(unembed.dtype) @ unembed.T, logit_softcap).float()
|
|
346
|
+
return out
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
def topk_probabilities(
|
|
350
|
+
logits: torch.Tensor, k: int,
|
|
351
|
+
) -> tuple[torch.Tensor, torch.Tensor]:
|
|
352
|
+
"""Top-k readout probabilities without a full softmax tensor.
|
|
353
|
+
|
|
354
|
+
``topk(softmax(x))`` has the same indices as ``topk(x)``, so only the
|
|
355
|
+
selected columns need normalizing — saving one vocab-sized allocation per
|
|
356
|
+
readout row, which matters for large vocabularies and multi-layer J-lens
|
|
357
|
+
sweeps. The unit is the per-layer probability ``p_l(v)``, the same one
|
|
358
|
+
``readout_probabilities`` produces and every other lens surface reports.
|
|
359
|
+
"""
|
|
360
|
+
logits_f = logits.float()
|
|
361
|
+
vals, idxs = logits_f.topk(k, dim=-1)
|
|
362
|
+
vals = (vals - logits_f.logsumexp(dim=-1, keepdim=True)).exp()
|
|
363
|
+
return vals, idxs
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
def readout_probabilities(logits: torch.Tensor) -> torch.Tensor:
|
|
367
|
+
"""Calibrate per-layer lens logits into the shared probability unit.
|
|
368
|
+
|
|
369
|
+
Kept as one explicit primitive so a live decode step can normalize its
|
|
370
|
+
full ``[layers, vocab]`` matrix once, then share the result between pinned
|
|
371
|
+
probes, per-layer cards, and the aggregate readout.
|
|
372
|
+
"""
|
|
373
|
+
return logits.float().softmax(dim=-1)
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
def pack_readout_rows_to_host(*rows: torch.Tensor) -> torch.Tensor:
|
|
377
|
+
"""Pack selected readout rows for one accelerator-to-host transfer.
|
|
378
|
+
|
|
379
|
+
The packed payload stays fp32 on the accelerator because MPS does not
|
|
380
|
+
support float64. fp32 still represents every practical vocabulary id
|
|
381
|
+
exactly (up to 2**24), so integer token-id rows can share the transfer with
|
|
382
|
+
probability/statistic rows without changing the public values.
|
|
383
|
+
"""
|
|
384
|
+
return torch.cat([row.float() for row in rows], dim=0).detach().cpu()
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
def aggregate_readout_from_probabilities(
|
|
388
|
+
probabilities: torch.Tensor,
|
|
389
|
+
depths: "Sequence[float]",
|
|
390
|
+
*,
|
|
391
|
+
top_k: int = 8,
|
|
392
|
+
depth_tensor: torch.Tensor | None = None,
|
|
393
|
+
) -> list[tuple[int, float, float, float]]:
|
|
394
|
+
"""Aggregate already-calibrated ``[layers, vocab]`` probabilities.
|
|
395
|
+
|
|
396
|
+
Strength must be computed over the whole vocabulary before selection, but
|
|
397
|
+
depth CoM/spread are needed only for the selected tokens. Gathering those
|
|
398
|
+
columns first preserves the exact statistic while avoiding full-vocabulary
|
|
399
|
+
depth tensors.
|
|
400
|
+
"""
|
|
401
|
+
if probabilities.ndim != 2 or probabilities.shape[0] == 0:
|
|
402
|
+
raise ValueError(
|
|
403
|
+
"aggregate_readout_from_probabilities expects [layers, vocab] "
|
|
404
|
+
f"probabilities, got shape {tuple(probabilities.shape)}"
|
|
405
|
+
)
|
|
406
|
+
if len(depths) != probabilities.shape[0]:
|
|
407
|
+
raise ValueError(
|
|
408
|
+
"aggregate_readout_from_probabilities: "
|
|
409
|
+
f"{probabilities.shape[0]} probability rows but {len(depths)} depths"
|
|
410
|
+
)
|
|
411
|
+
idxs, stats = aggregate_readout_tensors_from_probabilities(
|
|
412
|
+
probabilities,
|
|
413
|
+
depths,
|
|
414
|
+
top_k=top_k,
|
|
415
|
+
depth_tensor=depth_tensor,
|
|
416
|
+
)
|
|
417
|
+
host = pack_readout_rows_to_host(stats, idxs.reshape(1, -1))
|
|
418
|
+
return [
|
|
419
|
+
(
|
|
420
|
+
int(host[3, j]),
|
|
421
|
+
float(host[0, j]),
|
|
422
|
+
float(host[1, j]),
|
|
423
|
+
float(host[2, j]),
|
|
424
|
+
)
|
|
425
|
+
for j in range(int(idxs.numel()))
|
|
426
|
+
]
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
def aggregate_readout_tensors_from_probabilities(
|
|
430
|
+
probabilities: torch.Tensor,
|
|
431
|
+
depths: "Sequence[float]",
|
|
432
|
+
*,
|
|
433
|
+
top_k: int = 8,
|
|
434
|
+
depth_tensor: torch.Tensor | None = None,
|
|
435
|
+
) -> tuple[torch.Tensor, torch.Tensor]:
|
|
436
|
+
"""Device-resident aggregate selection and statistics.
|
|
437
|
+
|
|
438
|
+
Returns ``(token_ids[K], stats[3,K])`` where the statistic rows are
|
|
439
|
+
strength, depth center-of-mass, and depth spread. Keeping this tensor form
|
|
440
|
+
separate from the public list conversion lets the live readout combine its
|
|
441
|
+
per-layer and aggregate payloads into one GPU-to-host synchronization per
|
|
442
|
+
token.
|
|
443
|
+
"""
|
|
444
|
+
if probabilities.ndim != 2 or probabilities.shape[0] == 0:
|
|
445
|
+
raise ValueError(
|
|
446
|
+
"aggregate_readout_tensors_from_probabilities expects "
|
|
447
|
+
f"[layers, vocab] probabilities, got shape {tuple(probabilities.shape)}"
|
|
448
|
+
)
|
|
449
|
+
if len(depths) != probabilities.shape[0]:
|
|
450
|
+
raise ValueError(
|
|
451
|
+
"aggregate_readout_tensors_from_probabilities: "
|
|
452
|
+
f"{probabilities.shape[0]} probability rows but {len(depths)} depths"
|
|
453
|
+
)
|
|
454
|
+
strength = probabilities.mean(dim=0) # [V]
|
|
455
|
+
k = min(max(int(top_k), 0), int(strength.shape[-1]))
|
|
456
|
+
vals, idxs = strength.topk(k)
|
|
457
|
+
p = probabilities.index_select(-1, idxs) # [L, K]
|
|
458
|
+
d = _depth_column(
|
|
459
|
+
depths,
|
|
460
|
+
device=probabilities.device,
|
|
461
|
+
rows=int(probabilities.shape[0]),
|
|
462
|
+
depth_tensor=depth_tensor,
|
|
463
|
+
) # [L, 1]
|
|
464
|
+
mass = p.sum(dim=0).clamp_min(1e-12) # [K]
|
|
465
|
+
com = (p * d).sum(dim=0) / mass # [K]
|
|
466
|
+
var = (p * (d - com.unsqueeze(0)) ** 2).sum(dim=0) / mass
|
|
467
|
+
spread = var.clamp_min(0.0).sqrt()
|
|
468
|
+
return idxs, torch.stack([vals, com, spread])
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
def aggregate_readout(
|
|
472
|
+
logits: torch.Tensor,
|
|
473
|
+
depths: "Sequence[float]",
|
|
474
|
+
*,
|
|
475
|
+
top_k: int = 8,
|
|
476
|
+
depth_tensor: torch.Tensor | None = None,
|
|
477
|
+
) -> list[tuple[int, float, float, float]]:
|
|
478
|
+
"""Layer-aggregate a per-layer lens readout into one ranked token list.
|
|
479
|
+
|
|
480
|
+
``logits`` is ``[L, vocab]`` — one full-vocabulary lens readout row per
|
|
481
|
+
layer (:func:`lens_logits` output stacked); ``depths`` the matching
|
|
482
|
+
normalized layer depths in ``[0, 1]`` (``layer / (n_layers − 1)``).
|
|
483
|
+
Returns ``[(vocab_id, strength, com, spread), ...]`` sorted by
|
|
484
|
+
descending strength.
|
|
485
|
+
|
|
486
|
+
Raw lens logits are uncalibrated across layers, so each layer is first
|
|
487
|
+
put through its own softmax. From the per-layer probabilities
|
|
488
|
+
``p_l(v)``, two statistics per token:
|
|
489
|
+
|
|
490
|
+
- ``strength = mean_l p_l(v)`` — the mean probability over the layer
|
|
491
|
+
band, in ``[0, 1]``. Uniform layer weights: the softmax already
|
|
492
|
+
lets a confident layer dominate the ranking, so extra confidence
|
|
493
|
+
weighting would double-count.
|
|
494
|
+
- ``com``/``spread`` — the depth center of mass (+ std) weighted by
|
|
495
|
+
the same per-layer probability ``p_l(v)``. The selected-layer
|
|
496
|
+
readout is sharp, not diffuse (median per-layer max ≈ 0.8 on
|
|
497
|
+
gemma-3-4b) — what changes over depth is *which* token leads, so a
|
|
498
|
+
token's probability profile over depth IS its depth signal.
|
|
499
|
+
Probability mass also discounts a genuinely diffuse (noise) layer
|
|
500
|
+
automatically; the former within-layer salience ``p_l/max_v' p_l``
|
|
501
|
+
handed such a layer's relative-top token a full vote regardless of
|
|
502
|
+
absolute mass (in band the two weightings agree to ≲0.01 — one
|
|
503
|
+
channel, ``p_l``, now backs every readout statistic).
|
|
504
|
+
|
|
505
|
+
Top-k selection runs on the aggregated full-vocab strengths — a
|
|
506
|
+
per-layer top-k union would miss a token that ranks mid-pack at every
|
|
507
|
+
layer but top at none.
|
|
508
|
+
"""
|
|
509
|
+
if logits.ndim != 2 or logits.shape[0] == 0:
|
|
510
|
+
raise ValueError(
|
|
511
|
+
f"aggregate_readout expects [layers, vocab] logits, got shape "
|
|
512
|
+
f"{tuple(logits.shape)}"
|
|
513
|
+
)
|
|
514
|
+
if len(depths) != logits.shape[0]:
|
|
515
|
+
raise ValueError(
|
|
516
|
+
f"aggregate_readout: {logits.shape[0]} logit rows but "
|
|
517
|
+
f"{len(depths)} depths"
|
|
518
|
+
)
|
|
519
|
+
return aggregate_readout_from_probabilities(
|
|
520
|
+
readout_probabilities(logits),
|
|
521
|
+
depths,
|
|
522
|
+
top_k=top_k,
|
|
523
|
+
depth_tensor=depth_tensor,
|
|
524
|
+
)
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
def token_readout_stats_from_probabilities(
|
|
528
|
+
probabilities: torch.Tensor,
|
|
529
|
+
depths: "Sequence[float]",
|
|
530
|
+
token_ids: "Sequence[int]",
|
|
531
|
+
*,
|
|
532
|
+
token_ids_tensor: torch.Tensor | None = None,
|
|
533
|
+
depth_tensor: torch.Tensor | None = None,
|
|
534
|
+
) -> list[tuple[float, float, float, list[float]]]:
|
|
535
|
+
"""Per-token statistics from already-calibrated readout probabilities."""
|
|
536
|
+
if probabilities.ndim != 2 or probabilities.shape[0] == 0:
|
|
537
|
+
raise ValueError(
|
|
538
|
+
"token_readout_stats_from_probabilities expects [layers, vocab] "
|
|
539
|
+
f"probabilities, got shape {tuple(probabilities.shape)}"
|
|
540
|
+
)
|
|
541
|
+
if len(depths) != probabilities.shape[0]:
|
|
542
|
+
raise ValueError(
|
|
543
|
+
"token_readout_stats_from_probabilities: "
|
|
544
|
+
f"{probabilities.shape[0]} probability rows but {len(depths)} depths"
|
|
545
|
+
)
|
|
546
|
+
if not token_ids:
|
|
547
|
+
return []
|
|
548
|
+
ids = _token_id_tensor(
|
|
549
|
+
token_ids,
|
|
550
|
+
device=probabilities.device,
|
|
551
|
+
token_ids_tensor=token_ids_tensor,
|
|
552
|
+
)
|
|
553
|
+
p = probabilities.index_select(-1, ids) # [L, K]
|
|
554
|
+
return _token_readout_stats_from_probability_columns(
|
|
555
|
+
p, depths, depth_tensor=depth_tensor,
|
|
556
|
+
)
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
def _token_probability_columns_from_logits(
|
|
560
|
+
logits: torch.Tensor,
|
|
561
|
+
token_ids: "Sequence[int]",
|
|
562
|
+
*,
|
|
563
|
+
token_ids_tensor: torch.Tensor | None = None,
|
|
564
|
+
) -> torch.Tensor:
|
|
565
|
+
"""Exact softmax probabilities for selected token ids only.
|
|
566
|
+
|
|
567
|
+
The denominator remains the full-vocabulary logsumexp for each layer; only
|
|
568
|
+
the returned probability columns are narrowed. This preserves gate/display
|
|
569
|
+
thresholds while avoiding a full ``[layers, vocab]`` probability matrix for
|
|
570
|
+
fixed-token probes.
|
|
571
|
+
"""
|
|
572
|
+
ids = _token_id_tensor(
|
|
573
|
+
token_ids,
|
|
574
|
+
device=logits.device,
|
|
575
|
+
token_ids_tensor=token_ids_tensor,
|
|
576
|
+
)
|
|
577
|
+
logits_f = logits.float()
|
|
578
|
+
selected = logits_f.index_select(-1, ids) # [L, K]
|
|
579
|
+
log_z = logits_f.logsumexp(dim=-1, keepdim=True) # [L, 1]
|
|
580
|
+
return (selected - log_z).exp()
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
def _depth_column(
|
|
584
|
+
depths: "Sequence[float]",
|
|
585
|
+
*,
|
|
586
|
+
device: torch.device,
|
|
587
|
+
rows: int,
|
|
588
|
+
depth_tensor: torch.Tensor | None = None,
|
|
589
|
+
) -> torch.Tensor:
|
|
590
|
+
"""Return depths as a device ``[L, 1]`` tensor, reusing a caller cache."""
|
|
591
|
+
if depth_tensor is None:
|
|
592
|
+
d = torch.tensor(
|
|
593
|
+
[float(x) for x in depths],
|
|
594
|
+
dtype=torch.float32,
|
|
595
|
+
device=device,
|
|
596
|
+
)
|
|
597
|
+
else:
|
|
598
|
+
d = depth_tensor.to(device=device, dtype=torch.float32)
|
|
599
|
+
if d.ndim > 2:
|
|
600
|
+
raise ValueError(
|
|
601
|
+
f"depth_tensor must be [layers] or [layers, 1], got {tuple(d.shape)}"
|
|
602
|
+
)
|
|
603
|
+
d = d.reshape(-1)
|
|
604
|
+
if int(d.numel()) != rows:
|
|
605
|
+
raise ValueError(
|
|
606
|
+
f"depth tensor has {int(d.numel())} rows, expected {rows}"
|
|
607
|
+
)
|
|
608
|
+
return d.reshape(rows, 1)
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
def _token_id_tensor(
|
|
612
|
+
token_ids: "Sequence[int]",
|
|
613
|
+
*,
|
|
614
|
+
device: torch.device,
|
|
615
|
+
token_ids_tensor: torch.Tensor | None = None,
|
|
616
|
+
) -> torch.Tensor:
|
|
617
|
+
"""Return token ids as a device long tensor, reusing a caller cache."""
|
|
618
|
+
if token_ids_tensor is None:
|
|
619
|
+
return torch.tensor(
|
|
620
|
+
[int(v) for v in token_ids],
|
|
621
|
+
dtype=torch.long,
|
|
622
|
+
device=device,
|
|
623
|
+
)
|
|
624
|
+
ids = token_ids_tensor.to(device=device, dtype=torch.long).reshape(-1)
|
|
625
|
+
if int(ids.numel()) != len(token_ids):
|
|
626
|
+
raise ValueError(
|
|
627
|
+
f"token id tensor has {int(ids.numel())} ids, expected {len(token_ids)}"
|
|
628
|
+
)
|
|
629
|
+
return ids
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
def _token_readout_stats_from_probability_columns(
|
|
633
|
+
p: torch.Tensor,
|
|
634
|
+
depths: "Sequence[float]",
|
|
635
|
+
*,
|
|
636
|
+
depth_tensor: torch.Tensor | None = None,
|
|
637
|
+
) -> list[tuple[float, float, float, list[float]]]:
|
|
638
|
+
"""Shared stats body for selected token probability columns ``[L, K]``."""
|
|
639
|
+
if p.ndim != 2 or p.shape[0] == 0:
|
|
640
|
+
raise ValueError(
|
|
641
|
+
"token readout stats expect [layers, tokens] probabilities, "
|
|
642
|
+
f"got shape {tuple(p.shape)}"
|
|
643
|
+
)
|
|
644
|
+
if len(depths) != p.shape[0]:
|
|
645
|
+
raise ValueError(
|
|
646
|
+
f"token readout stats: {p.shape[0]} probability rows but "
|
|
647
|
+
f"{len(depths)} depths"
|
|
648
|
+
)
|
|
649
|
+
if p.shape[1] == 0:
|
|
650
|
+
return []
|
|
651
|
+
strength = p.mean(dim=0) # [K]
|
|
652
|
+
d = _depth_column(
|
|
653
|
+
depths,
|
|
654
|
+
device=p.device,
|
|
655
|
+
rows=int(p.shape[0]),
|
|
656
|
+
depth_tensor=depth_tensor,
|
|
657
|
+
) # [L, 1]
|
|
658
|
+
mass = p.sum(dim=0).clamp_min(1e-12) # [K]
|
|
659
|
+
com = (p * d).sum(dim=0) / mass # [K]
|
|
660
|
+
var = (p * (d - com.unsqueeze(0)) ** 2).sum(dim=0) / mass
|
|
661
|
+
spread = var.clamp_min(0.0).sqrt()
|
|
662
|
+
# one batched host transfer: 3 aggregate rows + the per-layer block
|
|
663
|
+
host = torch.cat(
|
|
664
|
+
[torch.stack([strength, com, spread]), p], dim=0,
|
|
665
|
+
).cpu() # [3+L, K]
|
|
666
|
+
n_layers = int(p.shape[0])
|
|
667
|
+
out: list[tuple[float, float, float, list[float]]] = []
|
|
668
|
+
for j in range(int(p.shape[1])):
|
|
669
|
+
per_layer = [float(host[3 + l, j]) for l in range(n_layers)]
|
|
670
|
+
out.append(
|
|
671
|
+
(
|
|
672
|
+
float(host[0, j]), float(host[1, j]), float(host[2, j]),
|
|
673
|
+
per_layer,
|
|
674
|
+
)
|
|
675
|
+
)
|
|
676
|
+
return out
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
def token_readout_stats(
|
|
680
|
+
logits: torch.Tensor,
|
|
681
|
+
depths: "Sequence[float]",
|
|
682
|
+
token_ids: "Sequence[int]",
|
|
683
|
+
*,
|
|
684
|
+
token_ids_tensor: torch.Tensor | None = None,
|
|
685
|
+
depth_tensor: torch.Tensor | None = None,
|
|
686
|
+
) -> list[tuple[float, float, float, list[float]]]:
|
|
687
|
+
"""Per-token readout statistics for pinned vocabulary ids.
|
|
688
|
+
|
|
689
|
+
The single-token restriction of :func:`aggregate_readout`: the same
|
|
690
|
+
per-layer softmax calibration, read at the requested ``token_ids``
|
|
691
|
+
instead of selected top-k. For each id:
|
|
692
|
+
|
|
693
|
+
- ``strength = mean_l p_l(v)`` — mean fitted-layer probability, the aggregate
|
|
694
|
+
readout's ranking stat and the ONE probe/gate/display channel
|
|
695
|
+
(objective and apples-to-apples across tokens and layers, unlike a
|
|
696
|
+
within-layer max normalization).
|
|
697
|
+
- ``com`` / ``spread`` — depth center of mass (+ std), weighted by the
|
|
698
|
+
same per-layer probability ``p_l(v)`` exactly like
|
|
699
|
+
:func:`aggregate_readout` — the one channel backs every statistic
|
|
700
|
+
(the band readout is sharp, so a token's probability profile over
|
|
701
|
+
depth is its depth signal; a diffuse noise layer's vote is
|
|
702
|
+
discounted by its own lack of mass).
|
|
703
|
+
- ``per_layer`` — ``[p_l, ...]`` aligned with the logit rows.
|
|
704
|
+
|
|
705
|
+
Returns one ``(strength, com, spread, per_layer)`` tuple per requested
|
|
706
|
+
id, with a single batched host transfer.
|
|
707
|
+
"""
|
|
708
|
+
if logits.ndim != 2 or logits.shape[0] == 0:
|
|
709
|
+
raise ValueError(
|
|
710
|
+
f"token_readout_stats expects [layers, vocab] logits, got shape "
|
|
711
|
+
f"{tuple(logits.shape)}"
|
|
712
|
+
)
|
|
713
|
+
if len(depths) != logits.shape[0]:
|
|
714
|
+
raise ValueError(
|
|
715
|
+
f"token_readout_stats: {logits.shape[0]} logit rows but "
|
|
716
|
+
f"{len(depths)} depths"
|
|
717
|
+
)
|
|
718
|
+
if not token_ids:
|
|
719
|
+
return []
|
|
720
|
+
return _token_readout_stats_from_probability_columns(
|
|
721
|
+
_token_probability_columns_from_logits(
|
|
722
|
+
logits, token_ids, token_ids_tensor=token_ids_tensor,
|
|
723
|
+
),
|
|
724
|
+
depths,
|
|
725
|
+
depth_tensor=depth_tensor,
|
|
726
|
+
)
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
class JSpaceDecomposition:
|
|
730
|
+
"""One layer's sparse nonnegative split of a direction against the J-lens
|
|
731
|
+
dictionary: ``share`` = fraction of the direction's variance carried by
|
|
732
|
+
the selected atoms, ``tokens`` = ``[(vocab_id, coeff), ...]`` sorted by
|
|
733
|
+
descending coefficient."""
|
|
734
|
+
|
|
735
|
+
__slots__ = ("layer", "share", "tokens")
|
|
736
|
+
|
|
737
|
+
def __init__(self, layer: int, share: float, tokens: list[tuple[int, float]]) -> None:
|
|
738
|
+
self.layer = layer
|
|
739
|
+
self.share = share
|
|
740
|
+
self.tokens = tokens
|
|
741
|
+
|
|
742
|
+
def __repr__(self) -> str:
|
|
743
|
+
return (
|
|
744
|
+
f"JSpaceDecomposition(layer={self.layer}, share={self.share:.3f}, "
|
|
745
|
+
f"k={len(self.tokens)})"
|
|
746
|
+
)
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
def sparse_nonneg_decompose(
|
|
750
|
+
target: torch.Tensor,
|
|
751
|
+
jacobian: torch.Tensor,
|
|
752
|
+
unembed: torch.Tensor,
|
|
753
|
+
*,
|
|
754
|
+
layer: int,
|
|
755
|
+
k: int = 16,
|
|
756
|
+
nnls_iters: int = 200,
|
|
757
|
+
atom_norms: torch.Tensor | None = None,
|
|
758
|
+
) -> JSpaceDecomposition:
|
|
759
|
+
"""Greedy sparse nonnegative pursuit of ``target`` against the J-lens
|
|
760
|
+
dictionary ``D = W_U @ J_l`` (the paper's gradient-pursuit decomposition).
|
|
761
|
+
|
|
762
|
+
The dictionary is never materialized (``[vocab, d]`` would be gigabytes
|
|
763
|
+
on a real model): atom scores are the composed matvec
|
|
764
|
+
``W_U @ (J_l @ residual)``, normalized by chunk-computed atom norms
|
|
765
|
+
(unnormalized inner products would bias selection toward large-norm
|
|
766
|
+
atoms), and only the ≤k selected rows are formed. After each selection
|
|
767
|
+
the coefficients re-solve as a k-dim nonnegative least squares
|
|
768
|
+
(projected gradient with the exact Lipschitz step — the problem is
|
|
769
|
+
tiny). Selection stops early when no atom correlates positively with
|
|
770
|
+
the residual.
|
|
771
|
+
"""
|
|
772
|
+
device = unembed.device
|
|
773
|
+
J = jacobian.to(device=device, dtype=torch.float32)
|
|
774
|
+
t = target.detach().to(device=device, dtype=torch.float32)
|
|
775
|
+
t_norm_sq = float(t.pow(2).sum())
|
|
776
|
+
if t_norm_sq == 0.0:
|
|
777
|
+
return JSpaceDecomposition(layer, 0.0, [])
|
|
778
|
+
norms = (
|
|
779
|
+
_atom_norms(J, unembed)
|
|
780
|
+
if atom_norms is None
|
|
781
|
+
else atom_norms.to(device=device, dtype=torch.float32)
|
|
782
|
+
)
|
|
783
|
+
norms = norms.clamp(min=1e-12)
|
|
784
|
+
|
|
785
|
+
selected: list[int] = []
|
|
786
|
+
rows: list[torch.Tensor] = []
|
|
787
|
+
coeffs = torch.zeros(0, device=device)
|
|
788
|
+
residual = t.clone()
|
|
789
|
+
for _ in range(k):
|
|
790
|
+
# normalized correlation over the vocabulary, D never materialized
|
|
791
|
+
scores = (unembed @ (J @ residual).to(unembed.dtype)).float() / norms
|
|
792
|
+
if selected:
|
|
793
|
+
scores[torch.tensor(selected, device=device)] = -torch.inf
|
|
794
|
+
best = int(scores.argmax())
|
|
795
|
+
if float(scores[best]) <= 0.0:
|
|
796
|
+
break
|
|
797
|
+
selected.append(best)
|
|
798
|
+
rows.append(unembed[best].float() @ J)
|
|
799
|
+
A = torch.stack(rows) # [s, d]
|
|
800
|
+
gram = A @ A.T
|
|
801
|
+
b = A @ t
|
|
802
|
+
c = torch.cat([coeffs, coeffs.new_zeros(1)])
|
|
803
|
+
solved = _try_unconstrained_nonnegative(gram, b, device=device)
|
|
804
|
+
if solved is None:
|
|
805
|
+
# CPU hop: eigvalsh is unimplemented on MPS, and the gram is ≤ k×k.
|
|
806
|
+
lipschitz = float(torch.linalg.eigvalsh(gram.cpu())[-1].clamp(min=1e-12))
|
|
807
|
+
for _ in range(nnls_iters):
|
|
808
|
+
c = torch.clamp(c - (gram @ c - b) / lipschitz, min=0.0)
|
|
809
|
+
else:
|
|
810
|
+
c = solved
|
|
811
|
+
coeffs = c
|
|
812
|
+
residual = t - A.T @ coeffs
|
|
813
|
+
|
|
814
|
+
share = max(0.0, 1.0 - float(residual.pow(2).sum()) / t_norm_sq)
|
|
815
|
+
pairs = sorted(
|
|
816
|
+
((tok, float(cf)) for tok, cf in zip(selected, coeffs) if float(cf) > 0.0),
|
|
817
|
+
key=lambda p: -p[1],
|
|
818
|
+
)
|
|
819
|
+
return JSpaceDecomposition(layer, share, pairs)
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
def _try_unconstrained_nonnegative(
|
|
823
|
+
gram: torch.Tensor,
|
|
824
|
+
b: torch.Tensor,
|
|
825
|
+
*,
|
|
826
|
+
device: torch.device,
|
|
827
|
+
tol: float = 1e-7,
|
|
828
|
+
) -> torch.Tensor | None:
|
|
829
|
+
"""Exact tiny least-squares solve when its coefficients are already >= 0.
|
|
830
|
+
|
|
831
|
+
The greedy J-space step solves ``min ||A^T c - t||²`` over the selected
|
|
832
|
+
atoms. If the unconstrained normal-equation solution is nonnegative, it is
|
|
833
|
+
also the NNLS optimum, so the 200-step projected-gradient loop is pure
|
|
834
|
+
overhead. If any coefficient is negative or the tiny system is singular, the
|
|
835
|
+
caller keeps the existing PGD fallback.
|
|
836
|
+
"""
|
|
837
|
+
g_cpu = gram.detach().to("cpu", torch.float32)
|
|
838
|
+
b_cpu = b.detach().to("cpu", torch.float32)
|
|
839
|
+
eye = torch.eye(g_cpu.shape[0], dtype=torch.float32)
|
|
840
|
+
try:
|
|
841
|
+
sol = torch.linalg.solve(g_cpu + 1e-7 * eye, b_cpu)
|
|
842
|
+
except RuntimeError:
|
|
843
|
+
return None
|
|
844
|
+
if not bool(torch.isfinite(sol).all()):
|
|
845
|
+
return None
|
|
846
|
+
if bool((sol < -tol).any()):
|
|
847
|
+
return None
|
|
848
|
+
return sol.clamp(min=0.0).to(device=device, dtype=torch.float32)
|
|
849
|
+
|
|
850
|
+
|
|
851
|
+
def _atom_norms(
|
|
852
|
+
jacobian: torch.Tensor, unembed: torch.Tensor, *, chunk: int = 8192
|
|
853
|
+
) -> torch.Tensor:
|
|
854
|
+
"""Per-atom norms ``‖W_U[v] @ J‖`` for the whole vocabulary, computed in
|
|
855
|
+
chunks so the ``[vocab, d]`` dictionary never exists in full."""
|
|
856
|
+
norms = torch.empty(unembed.shape[0], device=unembed.device)
|
|
857
|
+
for start in range(0, unembed.shape[0], chunk):
|
|
858
|
+
block = unembed[start : start + chunk].float() @ jacobian
|
|
859
|
+
norms[start : start + chunk] = block.norm(dim=-1)
|
|
860
|
+
return norms
|
|
861
|
+
|
|
862
|
+
|
|
863
|
+
def __getattr__(name: str) -> Any:
|
|
864
|
+
"""Lazy compatibility alias for the estimator entry point.
|
|
865
|
+
|
|
866
|
+
``fit_jacobian_lens`` moved to :mod:`drowse.core.jlens_fit`; resolving it
|
|
867
|
+
on demand keeps ``from drowse.core.jlens import fit_jacobian_lens``
|
|
868
|
+
working without importing the estimator when only the readout is wanted.
|
|
869
|
+
"""
|
|
870
|
+
if name == "fit_jacobian_lens":
|
|
871
|
+
from drowse.core.jlens_fit import fit_jacobian_lens
|
|
872
|
+
|
|
873
|
+
return fit_jacobian_lens
|
|
874
|
+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|