Skip to content

Conversation

@martindevans
Copy link
Member

  • State.ToByteArray and State.FromByteArray were never safe to use, now removed.
  • Added State.Load and State.Save, to replace the only uses of ToByteArray/FromByteArray
  • Removed LLamaTokenType - it's been removed from llama.cpp
  • Using All instead of Instance in NativeLogConfig
  • Removed redundant unsafe block in SafeLLamaContextHandle

 - `State.ToByteArray` and `State.FromByteArray` were never safe to use, now removed.
 - Added `State.Load` and `State.Save`, to replace the only uses of `ToByteArray`/`FromByteArray`
 - Removed `LLamaTokenType` - it's been removed from llama.cpp
 - Using `All` instead of `Instance` in `NativeLogConfig`
 - Removed redundant `unsafe` block in `SafeLLamaContextHandle`
@martindevans martindevans merged commit 1e63bb1 into SciSharp:master Jul 12, 2024
@martindevans martindevans deleted the remove_obsolete branch July 12, 2024 22:08
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.

1 participant