Skip to content

Add proper binary file for 'continuum' command - #20

Merged
joelteply merged 2 commits into
mainfrom
fix/update-readme
Apr 9, 2025
Merged

joelteply merged 2 commits into
mainfrom
fix/update-readme

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

This PR adds proper implementation for the CLI binary:

  • Adds a dedicated continuum.js binary file
  • Updates the Node.js version check from 14+ to 18+ in both binaries
  • Points the continuum command to the correct file in package.json

This ensures proper binary execution when the package is installed globally, with the correct Node.js version requirements.

Copilot AI review requested due to automatic review settings April 9, 2025 03:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • packages/cli/package.json: Language not supported

@joelteply
joelteply merged commit 712e628 into main Apr 9, 2025
@joelteply
joelteply deleted the fix/update-readme branch April 9, 2025 03:42
joelteply added a commit that referenced this pull request Nov 30, 2025
joelteply added a commit that referenced this pull request Nov 30, 2025
Add proper binary file for 'continuum' command
joelteply added a commit that referenced this pull request Jun 20, 2026
…1693)

unsloth is a local OpenAI-compatible server (like docker-model-runner): it
serves local models (llama.cpp) AND fans out to cloud providers via the keys
the user configures in unsloth Studio. So continuum reaches every model
through ONE provider with ONE credential (UNSLOTH_API_KEY) — no new adapter,
just a catalog entry + registration on the existing OpenAICompatibleAdapter.

- model_registry/catalog.rs: add the `unsloth` provider (base_url
  http://127.0.0.1:8888/v1, auth Bearer, api_key_env UNSLOTH_API_KEY). Dynamic
  catalog — the live model list comes from /v1/models (empty model_prefixes,
  runtime discovery), exactly like the DMR precedent.
- modules/ai_provider.rs: register the unsloth adapter when UNSLOTH_API_KEY is
  configured (key-gated, same pattern as the cloud providers). Additive
  priority for now; making the gateway the *preferred* route is a separate
  routing-policy change.

Live-validated end-to-end against a running unsloth Studio (tests/
unsloth_gateway_live.rs, skip-if-not-configured/unreachable): builds the SAME
adapter the core builds, reads the key from ~/.continuum/config.env,
authenticates + fetches the live /v1/models catalog. Proves real key + real
bearer auth + real transport to the running gateway — the wiring unit tests
(which mock dispatch) can't cover.

  ✓ unsloth gateway live: provider_id=unsloth, /v1/models returned 0 model(s)
  (0 = no model loaded in Studio yet; init succeeding = auth + transport OK)

Part of the unsloth universal-model-gateway direction (#31). Follow-ups: make
it the preferred route + UNSLOTH_BASE_URL runtime override (#20), install
autowire (#33), close the genome loop (#32). See memory
unsloth-universal-model-gateway.

Co-authored-by: Claude Opus 4.8 <[email protected]>
joelteply added a commit that referenced this pull request Sep 27, 2026
…ghts behind FineTuningAdapter (engine-local); pin 1d028f43b (#4443)

* feat(genome): the engine trainer — in-engine LoRA on the resident weights behind FineTuningAdapter ("engine-local")

The lane serving the base already holds its weights at their served quantization; its
POST /train trains a fresh LoRA beside the serving slots. This backend drives that run from the
genome: no second copy of the model, no trainer process, the adapter fit against the numerics it
is served over, out as a GGUF-lora the genome pages in with no convert step.

- native_jobs: one job owner for both kinds of run. Execution::Process (the PyTorch/MLX trainer
  processes, unchanged: spawn, drain, kill-and-reap on cancel) or Execution::InPlace (a run driven
  where it lives; on a cancel it stops the run THERE and reports Cancelled only once it has
  stopped). Same handles, probes, status and terminal states.
- engine_lora_adapter (provider "engine-local"): the live lane whose recorded model IS the base
  (none = refused); dataset -> "examples" (the engine renders them through the served template,
  one window each, loss only on the assistant turns); HF target modules -> GGUF names (unknown =
  refused); polls GET /train into progress; cancel = POST /train/cancel.
- admission is MEASURED: a footprint per (model, window, rank, targets) in
  ~/.continuum/genome/engine-footprints.json leases its number; a shape never run before is a
  calibration run that leases all governed free VRAM (nothing grows into it), samples the peak
  (ResourceDaemon::physical_used, new) and records peak - before for the next run.
- finish moves <job>.gguf OUT of engine-train into the job's adapters/ dir before the job is
  terminal (Fable's invariant: that dir is swept of files whose job is not live).
- registered in production; selected by preference ("engine-local") on GPU hosts, where the
  process trainers still rank first, until the first measured 27B run makes it the default.

Tests (the file's one mod, against an axum lane answering /train like the engine):
a_finished_run_moves_its_adapter_out_of_the_train_dir_and_reports_the_engines_losses,
a_cancel_stops_the_run_on_the_engine_before_the_job_reports_cancelled,
unknown_targets_and_unserved_bases_are_refused_up_front,
progress_is_completed_epochs_plus_the_current_batch_fraction. genome::fine_tuning 109/109.
NativeJobs::launch is test-only now (only fixtures used it; it was dead-code-warned).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc

* chore(llama): pin 1d028f43b, the trunk with fork #20/#21 — the "examples" this dispatch sends (rendered through the served template, one window each, loss only on the assistant turns) and the CE backward that honours the mask

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc

* fix(genome): no engine-trainer failure path lets go of the lease while the engine may still train (Cormac on #4443)

Every InPlaceEnd::Failed used to skip finish and drop the reservation at once: one GET /train
error, an unknown state, or a lost cancel POST released the lease under a live run.
- the lease is now OWNED BY THE RUN (EngineRun._lease) and drops only when run() returns;
- run() returns only once nothing of this job trains in the engine: every non-finished exit
  goes through stop_ours(), which cancels (retrying the POST) and waits until the engine's
  status is no longer this job's possibly-live run (ours and not done/cancelled/error — an
  unknown state counts as running) or the lane is gone;
- a status read is retried through a silence shorter than LANE_SILENCE (90 s); a body without a
  state is unreadable, retried, never read as "not ours"; a lane silent that long is gone and
  its run with it (the run lives inside the engine process);
- a POST /train lost on the way back is treated as possibly started and stopped before failing;
- "not ours" ends the job: the engine runs one training at a time, so another run means ours
  has ended;
- footprints keep the LARGEST observation (a 1 s scan can miss a peak, never invent one).

Tests: no_failure_path_ends_the_job_while_the_engine_still_trains_it (unreadable statuses are
retried to completion; an unknown state is cancelled on the engine before the job fails),
a_footprint_keeps_the_largest_observation. genome::fine_tuning 111/111.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
joelteply added a commit that referenced this pull request Nov 14, 2026
…_binary) into the vector consumer; typed seam review fixes

The resident matrix now fills one page per binary_page_into call into reused buffers,
with Uuid record ids. Review findings (js-shaped-rust 2026-11-14) #14-#20:
- VectorStoreError wraps VectorIndexError/UnitVectorError (#[from]); no String at the
  store seam, CommandError mapping at the command boundary only
- index_vector returns Result<DataRecord, VectorStoreError>; the wire keeps its receipt
- BinaryDescriptorError in orm::binary (byte_len, BinaryValue::new), with
  UnitVectorError::Descriptor(#[from]) and LengthOverflow
- EMBEDDING_FIELD is the one field name (filters, writes, stats, pages)
- Producer { Embedder(EmbedderId), WireQuery, IndexCommand } renders the descriptor's
  producer in one place
- MatrixBuilder -> seal() -> CpuMatrix: an unmeasured matrix cannot be searched;
  CandidateNeed::{Unmeasurable, Measured} and candidates() -> Option<NonZeroUsize>
- Ranked orders by total_cmp().then_with(row); Hit { row, score }; per-thread scratch
  so a query allocates only its k hits

Not compiled locally (serving node); CI is the compiler.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
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.

2 participants