Initial ForgeLM import

This commit is contained in:
Evandro Fonseca Junior committed 2026-03-29 19:10:57 -03:00
commit a392b9dc60
4296 files changed
+1212675

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
huggingface-hub>=0.23
requests>=2.31
tqdm>=4.66
+31
View File
@@ -0,0 +1,31 @@
"""
registry/service.py – Model registry service (Phase 1 stub).
Responsibilities (to be completed in Phase 11):
- Search Hugging Face Hub for GGUF models
- Download models with resume support + checksum validation
- Maintain a local index of available models
- Expose a simple JSON IPC socket for the Rust server
This file intentionally minimal in Phase 1. The structure is here so the
Rust server can already reference the IPC path in its config.
"""
import json
import os
import socket
import sys
from pathlib import Path
MODELS_DIR = Path(os.environ.get("LOCALLLM_MODELS_DIR", "../models"))
IPC_SOCKET = os.environ.get("LOCALLLM_REGISTRY_SOCK", "/tmp/localllm-registry.sock")
def main():
print(f"[registry] models dir : {MODELS_DIR.resolve()}")
print(f"[registry] IPC socket : {IPC_SOCKET}")
print("[registry] Phase 1 stub – no-op. Full implementation in Phase 11.")
if __name__ == "__main__":
main()