add upgrade docs, how to use, how to develop.#206
Conversation
| @@ -0,0 +1,66 @@ | |||
| # Developing mlx-swift-lm | |||
|
|
|||
| Techniques for developing _in_ mlx-swift-lm. | |||
There was a problem hiding this comment.
This should help people who are developing new models or KVCache, etc -- it walks through the ways that you can develop and test.
| @@ -0,0 +1,147 @@ | |||
| # Upgrade From 2.x Release | |||
|
|
|||
| Notes on upgrading from mlx-swift-lm 2.x releases. | |||
There was a problem hiding this comment.
Specifically on how to upgrade, based on notes from ml-explore/mlx-swift-examples#468
| @@ -0,0 +1,237 @@ | |||
| # Using mlx-swift-lm | |||
|
|
|||
| How to use mlx-swift-lm in your own tools and applications | |||
There was a problem hiding this comment.
The current top level README with more explanation
| simplest way, but consider <doc:#Integration-Package> as there are alternate | ||
| implementations that may provide features and capabilities that you want. | ||
|
|
||
| ### Implementing Protocols |
There was a problem hiding this comment.
Building the integration by hand.
|
|
||
| See <doc:#Xcode-projects> for information about how to hook it up. | ||
|
|
||
| ### MLXHuggingFace Macros |
There was a problem hiding this comment.
Parity with 2.x -- use the macros. If you are just trying to get things up and running on 3.x this is probably the easiest (in terms of dependency wrangling, especially before we cut the release).
| > to decouple from tokenizer and downloader packages some breaking | ||
| > changes were introduced. See [Breaking Changes](#breaking-changes) for more information. | ||
| > | ||
| > Additionally [upgrading documentation](https://swiftpackageindex.com/ml-explore/mlx-swift-lm/main/documentation/mlxlmcommon/upgrade)) has detailed instructions on upgrading. |
There was a problem hiding this comment.
Once merged the docs will show up here -- the link doesn't exist yet.
|
|
||
| > [!NOTE] | ||
| > https://github.com/ml-explore/mlx-swift-examples/pull/468 is a branch in mlx-swift-examples | ||
| > that uses the new 3.x APIs. |
There was a problem hiding this comment.
Pointer for people who want to try the integration in mlx-swift-examples.
|
|
||
| For some example applications and tools that use MLX Swift LM, check out [MLX Swift Examples](https://github.com/ml-explore/mlx-swift-examples). | ||
|
|
||
| ## Documentation |
There was a problem hiding this comment.
Just moved this back up to the top
| | [huggingface/swift-huggingface](https://github.com/huggingface/swift-huggingface) | [DePasqualeOrg/swift-huggingface-mlx](https://github.com/DePasqualeOrg/swift-huggingface-mlx) | | ||
| | [DePasqualeOrg/swift-hf-api](https://github.com/DePasqualeOrg/swift-hf-api) | [DePasqualeOrg/swift-hf-api-mlx](https://github.com/DePasqualeOrg/swift-hf-api-mlx) | | ||
| | [huggingface/swift-huggingface](https://github.com/huggingface/swift-huggingface) | [DePasqualeOrg/swift-huggingface-mlx](https://github.com/DePasqualeOrg/swift-huggingface-mlx) | |
There was a problem hiding this comment.
Reordered so it is consistent with the other table.
e6bfb5c to
ec4538d
Compare
|
The docs on SPI are not building for some reason, which means that the links to the doc articles are not working: https://swiftpackageindex.com/ml-explore/mlx-swift-lm/builds |
Thanks for spotting that -- let me see if I can figure out what is going on there. Perhaps it is just lag in the doc builds. SPI does see the new tag. |
|
Maybe it is just this:
|
|
Edit: Comment moved to #216 |
Proposed changes
Documentation on:
Checklist
Put an
xin the boxes that apply.pre-commit run --all-filesto format my code / installed pre-commit prior to committing changesFYI @DePasqualeOrg @ronaldmannak
The top level README.md has information on upgrading, etc. -- this is a start at moving it into the documentation proper and documenting how to integrate (3 ways) with downloaders/tokenizers. Let me know what you think.
When we are ready to release 3.x I think the README can be cut down substantially and just point at the hosted docs.