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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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

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.

None yet

2 participants