You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed on Discord, this PR was not ready to be merged. CI fails on
it.
This reverts commit a602f7f.
Signed-off-by: Jared Van Bortel <[email protected]>
llama.cpp git submodule for gpt4all can be possibly absent or outdated. Make sure to run
199
+
* The below shell commands assume the current working directory is `typescript`.
200
+
201
+
* To Build and Rebuild:
202
202
203
203
```sh
204
-
git submodule update --init --recursive
204
+
node scripts/prebuild.js
205
205
```
206
-
207
-
The below shell commands assume the current working directory is `typescript`.
208
-
209
-
Using yarn
206
+
* llama.cpp git submodule for gpt4all can be possibly absent. If this is the case, make sure to run in llama.cpp parent directory
210
207
211
208
```sh
212
-
yarn install
213
-
yarn build
209
+
git submodule update --init --recursive
214
210
```
215
211
216
-
Using npm
217
-
218
212
```sh
219
-
npm install
220
-
npm run build
213
+
yarn build:backend
221
214
```
222
-
223
-
The `build:runtimes` script will create runtime libraries for your platform in `runtimes` and `build:prebuilds` will create the bindings in `prebuilds`. `build` is a shortcut for both.
215
+
This will build platform-dependent dynamic libraries, and will be located in runtimes/(platform)/native
224
216
225
217
### Test
226
218
@@ -267,7 +259,7 @@ yarn test
267
259
268
260
This package has been stabilizing over time development, and breaking changes may happen until the api stabilizes. Here's what's the todo list:
269
261
270
-
*\[x][Purely offline](#Offline-usage). Per the gui, which can be run completely offline, the bindings should be as well.
262
+
*\[]Purely offline. Per the gui, which can be run completely offline, the bindings should be as well.
271
263
*\[] NPM bundle size reduction via optionalDependencies strategy (need help)
272
264
* Should include prebuilds to avoid painful node-gyp errors
273
265
*\[x] createChatSession ( the python equivalent to create\_chat\_session )
@@ -284,7 +276,7 @@ This package has been stabilizing over time development, and breaking changes ma
284
276
This repository serves as the new bindings for nodejs users.
285
277
- If you were a user of [these bindings](https://github.com/nomic-ai/gpt4all-ts), they are outdated.
286
278
- Version 4 includes the follow breaking changes
287
-
*`createEmbedding` & `EmbeddingModel.embed()` returns an object, `EmbeddingResult`, instead of a Float32Array.
279
+
*`createEmbedding` & `EmbeddingModel.embed()` returns an object, `EmbeddingResult`, instead of a float32array.
288
280
* Removed deprecated types `ModelType` and `ModelFile`
289
281
* Removed deprecated initiation of model by string path only
0 commit comments