{
  "source_file": "src/llm/param_optimizer.py",
  "generated_at": "2026-01-10T22:55:11.149637",
  "summary": {
    "purpose": "Automatically detects hardware capabilities and model characteristics to provide optimal parameters for inference performance.",
    "exports": [
      "get_optimal_params"
    ],
    "imports": [
      "os",
      "re",
      "multiprocessing",
      "typing",
      "Literal"
    ],
    "key_logic": "The module provides a function to get optimal parameters based on model size and available hardware, including CPU and GPU detection.",
    "important_classes": [],
    "important_functions": [],
    "dependencies": "The module depends on the 'os', 're', 'multiprocessing', and 'typing' modules for utility functions and data structures.",
    "notes": "The module includes functions for detecting hardware capabilities and model characteristics, and provides optimal parameters for Llama model initialization based on these characteristics."
  }
}