Instructions to use minagayid/ELLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use minagayid/ELLM with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/SmolLM2-135M-Instruct") model = PeftModel.from_pretrained(base_model, "minagayid/ELLM") - Transformers
How to use minagayid/ELLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="minagayid/ELLM")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("minagayid/ELLM", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use minagayid/ELLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "minagayid/ELLM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "minagayid/ELLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/minagayid/ELLM
- SGLang
How to use minagayid/ELLM with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "minagayid/ELLM" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "minagayid/ELLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "minagayid/ELLM" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "minagayid/ELLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use minagayid/ELLM with Docker Model Runner:
docker model run hf.co/minagayid/ELLM
Download docs/architecture.md from minagayid/ELLM: direct link, hf CLI and curl.
- Browser
- Download file 6.26 kB
-
https://huggingface.co/minagayid/ELLM/resolve/main/docs/architecture.md
- Command line
-
hf download hf://minagayid/ELLM/docs/architecture.md
-
curl -L -o architecture.md https://huggingface.co/minagayid/ELLM/resolve/main/docs/architecture.md
ELLM prototype architecture
Design target
Support the requested pattern—observe, accumulate, verify, incubate, then release—without pretending that a static model can autonomously and safely add parameters from the open web. The current code includes a pinned SmolLM2-135M base model, an experimental synthetic-task LoRA adapter for advisory triage, a base-only local draft generator, local lexical retrieval, an evidence gate, and a ledger. It has no crawler, tool executor, or hosted service.
Three learning speeds
| Layer | Update rate | Contents | Release rule |
|---|---|---|---|
| Working context | Per request | Current question and retrieved passages | Never treated as durable truth |
| Evidence memory | Continuous, read-only observation | Authorized source metadata, privacy decision, short excerpts, hashes, claims, support and conflict links | Retrieval uses only evidence cited by claims that pass external verification and incubation |
| Model/adapters | Deliberate, offline releases | Pinned SmolLM2-135M base, ELLM LoRA candidate, prompt and policy versions | Held-out evaluation, regression checks, human release decision, version pin, canary, rollback |
The initial model artifact is an adapter candidate trained only on procedurally generated policy examples. It does not add web facts. The main future knowledge-growth path is retrieval over promoted evidence; RAG combines a generator with updateable non-parametric memory, but retrieval does not itself prove the retrieved material is correct (Lewis et al.).
State flow
allowlisted source
|
v
rights / terms / robots review ---- failure ---> quarantine; no retrieval
|
v
provenance ledger + content hash
|
v
candidate claim <---- contradiction or correction
|
v
external passage verification
|
v
incubation + independent-source thresholds
| |
| fail / incomplete | pass
v v
WAIT / ABSTAIN / HUMAN REVIEW promoted retrieval memory
|
v
cited answer, low risk only
Release policy
The current default requires the claim itself to have been observed for 30 days and waits for a 30-day span between the earliest and latest signed, externally verified support. Every counted support receipt must be no older than 180 days. Four fresh verified records, three publishers, three independence groups, and one primary source are required. The code prevents configurations below those floors. These values exist to make the code fail closed and make the delay visible. They are not empirically calibrated.
Any contradiction returns human review. No free-form draft is accepted; only submitted structured propositions can be released. The current code does not verify that an upstream claim scanner found every assertion, so claim-set completeness remains an explicit deployment gap. High/critical-risk claims and non-informational actions do not auto-release. The gate does not execute actions.
No single weighted score decides promotion. A scalar score can conceal a failed hard requirement; this implementation requires every threshold. If later research adds a learned ranker, it must not override rights, risk, contradiction, or authorization gates.
Weight-change promotion protocol
The included adapter is an experimental candidate for one synthetic triage task. It is not calibrated for deployment and cannot bypass the deterministic release gate. Any later candidate must follow a separate, reproducible offline process:
- Use only data with documented training permission and deduplicate against prior corpora.
- Create a candidate adapter/checkpoint with pinned base-model, tokenizer, code, and dataset revisions.
- Evaluate held-out correctness, reliability, generalization, citation support, safety, cost, and regression. Synthetic closed-world results must be labeled synthetic and cannot stand in for real source-verification data.
- Compare to the currently promoted version. Reject on any hard-gate failure or material regression.
- Require a human release decision; sign/version the promoted artifact and retain the previous version for rollback.
- Run a bounded canary before broad use. Candidate training never writes directly to the active model.
Repeated self-generated data is not independent evidence. Self-critique can be useful for drafting, but is not the release verifier; published results show that self-correction without reliable external feedback can fail to improve reasoning (Huang et al.).
Operational boundaries
- The local ledger is single-process SQLite. Its hash chain detects accidental or direct edits to existing rows when verified, but it is not a signed, remote audit log.
- SourcePolicy checks domain, reuse rights, privacy status, intended purpose, evidence-use expiry, and operator-supplied terms/robots attestations. It does not browse a site or prove those attestations. Expiry blocks use but does not erase ledger rows; deletion is not implemented.
- Source authorization, claim verification, and risk-classification receipts are HMAC-signed and checked against trusted keys configured by the host. The keys are not part of this repository. This proves only that a configured signer attested to bound metadata; it does not prove that a source or claim is true.
- The 30-day claim clock depends on
first_observed_atfrom a durable first-seen log. The trusted risk assessor must verify and sign that timestamp; this prototype does not implement the observation log. - Release and retrieval use a host-controlled UTC clock injected when the gate is constructed. Per-request time overrides are rejected; deployments still need a trustworthy, synchronized host clock.
- The package does not create credentials, fetch URLs, run browser automation, or execute shell actions from model output. Training is explicit and offline; it writes a versioned candidate adapter, never the active weights.