Text Generation
PEFT
Safetensors
Transformers
lora
research-prototype
failed-promotion
not-ready-for-deployment
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 tests/test_clock_injection.py from minagayid/ELLM: direct link, hf CLI and curl.
- Browser
- Download file 2.98 kB
-
https://huggingface.co/minagayid/ELLM/resolve/main/tests/test_clock_injection.py
- Command line
-
hf download hf://minagayid/ELLM/tests/test_clock_injection.py
-
curl -L -o test_clock_injection.py https://huggingface.co/minagayid/ELLM/resolve/main/tests/test_clock_injection.py
2.98 kB
| import tempfile | |
| import unittest | |
| from datetime import datetime, timedelta, timezone | |
| from pathlib import Path | |
| from ellm.ledger import EvidenceLedger | |
| from ellm.policy import GatePolicy, MaturationGate, SourcePolicy | |
| from ellm.retrieval import BM25Retriever | |
| from ellm.runtime import AnswerGate | |
| from ellm.types import ActionClass, CandidateClaim, DecisionKind, RiskTier | |
| class MaturationGateClockTests(unittest.TestCase): | |
| def setUp(self) -> None: | |
| self.now = datetime(2026, 9, 28, 12, 0, tzinfo=timezone.utc) | |
| self.source_policy = SourcePolicy(frozenset({"example.com"})) | |
| self.temp_dir = tempfile.TemporaryDirectory() | |
| self.addCleanup(self.temp_dir.cleanup) | |
| self.ledger = EvidenceLedger( | |
| Path(self.temp_dir.name) / "ledger.sqlite", self.source_policy | |
| ) | |
| self.claim = CandidateClaim( | |
| claim_id="clock-test-claim", | |
| proposition="A deterministic clock is used for this test.", | |
| risk=RiskTier.LOW, | |
| action_class=ActionClass.INFORMATIONAL, | |
| first_observed_at=self.now - timedelta(days=29), | |
| evidence_ids=(), | |
| ) | |
| def test_evaluate_uses_the_injected_clock(self) -> None: | |
| policy = GatePolicy(sources=self.source_policy) | |
| gate = MaturationGate(policy, clock=lambda: self.now) | |
| decision = gate.evaluate(self.claim, self.ledger) | |
| self.assertEqual(decision.kind, DecisionKind.WAIT) | |
| self.assertIn("claim_incubation_period_incomplete", decision.reasons) | |
| self.assertEqual(decision.next_review_at, self.now + timedelta(days=1)) | |
| matured_clock = MaturationGate( | |
| policy, clock=lambda: self.now + timedelta(days=2) | |
| ) | |
| self.assertEqual( | |
| matured_clock.evaluate(self.claim, self.ledger).kind, | |
| DecisionKind.HUMAN_REVIEW, | |
| ) | |
| def test_request_methods_do_not_accept_clock_overrides(self) -> None: | |
| gate = MaturationGate( | |
| GatePolicy(sources=self.source_policy), clock=lambda: self.now | |
| ) | |
| with self.assertRaises(TypeError): | |
| gate.evaluate(self.claim, self.ledger, self.now + timedelta(days=30)) | |
| with self.assertRaises(TypeError): | |
| AnswerGate(gate).evaluate( | |
| (self.claim,), self.ledger, now=self.now + timedelta(days=30) | |
| ) | |
| with self.assertRaises(TypeError): | |
| BM25Retriever().search( | |
| "clock test", | |
| self.ledger, | |
| (self.claim,), | |
| gate, | |
| now=self.now + timedelta(days=30), | |
| ) | |
| def test_clock_must_return_an_aware_datetime(self) -> None: | |
| gate = MaturationGate( | |
| GatePolicy(sources=self.source_policy), | |
| clock=lambda: datetime(2026, 9, 28, 12, 0), | |
| ) | |
| with self.assertRaisesRegex(ValueError, "timezone-aware"): | |
| gate.evaluate(self.claim, self.ledger) | |
| if __name__ == "__main__": | |
| unittest.main() | |