Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add experimental auto-download support. #692

Merged
merged 5 commits into from
May 22, 2024

Conversation

AsakusaRinne
Copy link
Collaborator

@AsakusaRinne AsakusaRinne commented Apr 24, 2024

Description

This PR implements #670 and should only be merged after #688

It puts all the logics of auto-download in a new package LLama.Exeprimental. Thus we don't need to rush for making the decision that whether it should be added to the main package or as a separate package. Instead we could listen from the users first.

It works fine for me on my windows. I'll appreciate it if anyone would like to help on Linux and MAC!

TODO

  • Windows test
  • Linux test
  • MAC test
  • Add a ci to uploading files to Huggingface. (in another PR)
  • Add docs for this feature. (maybe in another PR)

How to test it

Comment all the content in LLama/LLamaSharp.Runtime.targets and run the examples with auto-download enabled. It's better to enable the full logs (though in a bit mess now).

@SignalRT
Copy link
Collaborator

It seems to work on osx. I think it should be clearly described at some point how the cache is managed and where is located by default:

image

@AsakusaRinne
Copy link
Collaborator Author

Merge this PR now since this feature is only included in the experimental package. However, the introduction of this feature in the master branch will be delayed indefinitely. Before figuring a good way to deal with the security issue, this feature will be kept only in the experimental package.

The documentation of the description of its usages and cache will be added in a separate PR later.

@AsakusaRinne AsakusaRinne merged commit 87e07a4 into SciSharp:master May 22, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants