Repository navigation
Add proper binary file for 'continuum' command - #20
Merged
Merged
Conversation
…ersion requirement to 18+
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
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.
This PR adds proper implementation for the CLI binary:
This ensures proper binary execution when the package is installed globally, with the correct Node.js version requirements.