-
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: split gguf files support (#214)
* feat: split gguf files support * feat: `pull` command * feat: `stopOnAbortSignal` and `customStopTriggers` on `LlamaChat` and `LlamaChatSession` * feat: `checkTensors` parameter on `loadModel` * feat: improve Electron support * fix: more efficient max context size finding algorithm * fix: make embedding-only models work correctly * fix: perform context shift on the correct token index on generation * fix: make context loading work for all models on Electron * refactor: simplify `LlamaText` implementation * docs: update simple usage
- Loading branch information
Showing
60 changed files
with
9,161 additions
and
6,508 deletions.
There are no files selected for viewing
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,11 +1,18 @@ | ||
import {h} from "vue"; | ||
import Theme from "vitepress/theme"; | ||
import TwoslashFloatingVue from "@shikijs/vitepress-twoslash/client"; | ||
import "@shikijs/vitepress-twoslash/style.css"; | ||
import "./style.css"; | ||
|
||
import type {EnhanceAppContext} from "vitepress"; | ||
|
||
export default { | ||
extends: Theme, | ||
Layout: () => { | ||
return h(Theme.Layout, null, {}); | ||
}, | ||
enhanceApp({app, router, siteData}) {} | ||
enhanceApp({app, router, siteData}: EnhanceAppContext) { | ||
// @ts-ignore | ||
app.use(TwoslashFloatingVue); | ||
} | ||
}; |
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
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
outline: deep | ||
--- | ||
# `pull` command | ||
|
||
<script setup lang="ts"> | ||
import {data as docs} from "./cli.data.js"; | ||
const commandDoc = docs.pull; | ||
</script> | ||
|
||
{{commandDoc.description}} | ||
|
||
## Usage | ||
```shell-vue | ||
{{commandDoc.usage}} | ||
``` | ||
<div v-html="commandDoc.options"></div> |
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
Oops, something went wrong.