Repository navigation
feat: lens and steering in the engine, embeds generation, new protocol methods, and various fixes/optimizations - #34
Merged
Merged
Conversation
hijohnnylin
force-pushed
the
engine-next
branch
from
October 9, 2026 22:24
ede57df to
efb16a8
Compare
…l methods, and various fixes/optimizations
hijohnnylin
force-pushed
the
engine-next
branch
from
October 9, 2026 23:03
efb16a8 to
6fc3bd7
Compare
hijohnnylin
marked this pull request as ready for review
October 9, 2026 23:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New features for every backend: the lens in the engine, steering in generation and capture, reads of an activation through a LoRA adapter, and a single-model HTTP server. This is a minor release. Nothing is removed. The old APIs that changed remain as deprecated shims.
Added
generate_with_lens()on every backend.Steering).NormScaledAddSpec,AblateSpec,SwapSpec.steer()blocks can skip positions, and they reach generation and capture on vLLM too.SteerMethod,steering_from_directions, and the TransformerLens steer mapping.describe().unembed_rows.generate_steps_from_embeds, andsample_from_embeds(n completions of one embeds prompt in one request).generation_config.json.capture()is the new name, andrun_with_cachestays as an alias. Also new:capture(rows=...);python -m interp_engine.serverserves one model, with/v1/projectand/v1/lens.api/engine.yamlgeneratesinterp_engine/api.py, with conformance fixtures.Fixed
release()frees the engines.select_backendnames the backend. It refuses a backend that the machine cannot run before it loads anything.HubMirrorread-through.Deprecated
These still work and give a
DeprecationWarning. They will be removed in a later major release.VLLMModel.generate_from_embeds(prompt_embeds, sampling_params): usegenerate_steps_from_embedsorsample_from_embeds.lens_intervention=oncapture_generation,capture_generation_streamandlens_capture_readout_stream: use asteer()block withNormScaledAddSpec/AblateSpec/SwapSpec.Tooling
serverextra is in the lock file.Testing