chore: initialize autoresearch baseline
This commit is contained in:
commit
f83e8b83f6
42 files changed
+10550
No files matched your search
@@ -0,0 +1,3 @@
|
||||
huggingface-hub>=0.23
|
||||
requests>=2.31
|
||||
tqdm>=4.66
|
||||
@@ -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()
|
||||
Reference in new issue
Block a user