-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: include ollama-cli in workspace
- Loading branch information
1 parent
c0f2d11
commit 502e369
Showing
96 changed files
with
1,084 additions
and
181 deletions.
There are no files selected for viewing
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,37 @@ | ||
# djinn | ||
# `djinn-rs` | ||
|
||
Right now the Rust implementation is most complete. | ||
a Rust playground | ||
for running language models | ||
and some other machine learning models. | ||
|
||
Run with command line arguments: | ||
## `djinn-cli` | ||
the main entrypoint | ||
for running either | ||
a server (with `djinn-server`) | ||
or a one shot inference. | ||
|
||
```sh | ||
$ cd djinn-rs | ||
$ cargo run -- --help | ||
# example prompt | ||
$ cargo run --release -- llama --disable-flash-attention --model-version v1 --dtype f32 | ||
"In a world" --sample-len 256 --repeat-penalty 50 | ||
``` | ||
## `djinn-core` | ||
|
||
core ML functionality and model implementations. | ||
|
||
## `djinn-server` | ||
|
||
## supported models | ||
an HTTP server | ||
with an API | ||
and HTMX front-end | ||
for running models | ||
|
||
- Llama 1 | ||
- YOLOv8 | ||
# examples | ||
|
||
run the server on a Macbook M-series: | ||
|
||
```sh | ||
cargo run --release --features djinn-core/mac -- server-config --name test | ||
``` | ||
|
||
### TODO | ||
- Llama 2 | ||
- [LoRA](https://github.com/EricLBuehler/candle-lora) | ||
breakdown: | ||
- `cargo run --release` to build in release mode for best performance | ||
- `--features djinn-core/mac` to enable CoreML acceleration | ||
- `--` everything before this are `cargo` args and everything after are `djinn` args | ||
- `server-config` command to run the server from a config file | ||
- `--name test` to run the config named `test`, in `./configs/server/test.toml` |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.