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
File size: 2,984 Bytes
7d6d689 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | 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()
|