Skip to content

Conversation

SanftMonster
Copy link
Collaborator

@SanftMonster SanftMonster 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

@SanftMonster SanftMonster force-pushed the experimental-auto-download branch from 54efc4a to 486bcc6 Compare May 22, 2024 18:10
@SanftMonster
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.

@SanftMonster SanftMonster merged commit 87e07a4 into SciSharp:master May 22, 2024
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