Skip to content

Add models at run-time directly from Hugginface repository#562

Merged
lucksus merged 27 commits intodevfrom
feature/add-models-via-hugginface-url
Feb 12, 2025
Merged

Add models at run-time directly from Hugginface repository#562
lucksus merged 27 commits intodevfrom
feature/add-models-via-hugginface-url

Conversation

@lucksus
Copy link
Member

@lucksus lucksus commented Feb 11, 2025

Enables quick try-out of new models without recompiling ad4m

  • So far unused extra properties (next to file_name) in LocalModal changed in Rust, JS/TS, database, GraphQL, to fit the needed info for downloading a model from a Huggingface repo, with optional tokenizer file.
    • repository name
    • branch (usually: main)
    • file name
      (same again for optional tokenizer file)
  • added update_model functions to AIService so updating a model through UI doesn't only change the DB which would only take effect on next start-up, but shuts down existing model thread and respawns with new config / model files
  • UI in Launcher for custom defined Huggingface models

Screenshot 2025-02-12 at 16 34 18
Screenshot 2025-02-12 at 16 34 26
Screenshot 2025-02-12 at 16 34 31

jhweir
jhweir previously approved these changes Feb 11, 2025
@lucksus lucksus changed the title Add models during run-time via Hugginface URL Add models at run-time directly from Hugginface repository Feb 12, 2025
@lucksus lucksus merged commit 5cb8a62 into dev Feb 12, 2025
2 checks passed
@lucksus lucksus deleted the feature/add-models-via-hugginface-url branch August 22, 2025 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants