Skip to content

feat: 0.9.0 Mobile-First API Improvements (Issue #4) - #6

Closed
sebasbad wants to merge 1 commit into
feat/0.9.0-architecturefrom
feat/0.9.0-mobile-first-api
Closed

feat: 0.9.0 Mobile-First API Improvements (Issue #4)#6
sebasbad wants to merge 1 commit into
feat/0.9.0-architecturefrom
feat/0.9.0-mobile-first-api

Conversation

@sebasbad

Copy link
Copy Markdown
Owner

Summary

Implements Issue #4 on top of the 0.9.0 architecture (feat/0.9.0-architecture):

  1. ContextParams.mobile(): Memory-optimized factory constructor setting a 1024 token context window and 128 batch size with safe f16 KV-cache types.
  2. LlamaEngine.isDisposed: Public getter to check if worker isolate engine is disposed/alive.
  3. LlamaModel.estimateVramBytes({int nCtx}): Utility calculation estimating peak VRAM requirement for a model + KV cache + GPU scratch buffers.
  4. EngineChat.cancel(): Cancellation hook for active chat generation streams.

Closes #4.

…, isDisposed, estimateVramBytes, chat.cancel)
@sebasbad

Copy link
Copy Markdown
Owner Author

Superseded by upstream PR netdur#109

@sebasbad sebasbad closed this Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant