NextGen-GameDev / LibTorch-UE

Integrate LibTorch Unreal to create and use neural networks without leveraging Python.
MIT License
14 stars 3 forks source link

[Editor] Extend JSON Loading for LlamaOptions with Default Handling #5

Closed P1ayer-1 closed 3 months ago

P1ayer-1 commented 3 months ago

Building upon the foundational work in PR #4 , titled "[Editor] Add load from JSON button for LlamaOptions," this PR introduces the ability to handle default values when loading configurations for Llama models from JSON files. This addition accommodates scenarios where certain configuration parameters are omitted from the JSON file.

Background and Rationale: The original PR #4 introduced the ability to load JSON Llama model configuration files found on the HuggingFace Hub from within the Unreal Editor. Building on this, I observed that handling scenarios where certain parameters were not specified would be necessary to ensure that models perform as expected. Thus, this enhancement focuses on managing missing parameters by utilizing the default values from the base Llama config, reducing potential errors and improving ease of use.