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
* chore: update package versions to 0.2.0-rc1
* fix: reset isLoaded flag after unloading module in ExecuTorch classes
* refactor: api
modified: example/src/App.tsx
* fix: handle undefined metadata and preserve existing values in MemoryVectorStore update
@@ -61,16 +61,16 @@ export class ExecuTorchEmbeddings implements Embeddings {
61
61
}
62
62
63
63
/**
64
-
* Unloads the underlying module. Note: unload is synchronous in ExecuTorch
65
-
* at the time of writing; this method resolves immediately after calling delete.
64
+
* Unloads the underlying module.
65
+
* Note: current ExecuTorch unload is synchronous.
66
66
* Awaiting this method will not guarantee completion.
67
-
* @returns Promise that resolves when unloading is initiated.
68
67
*/
69
68
asyncunload(){
70
69
console.warn(
71
70
'This function will call a synchronous unload on the instance of TextEmbeddingsModule from React Native ExecuTorch. Awaiting this method will not guarantee completion. This may change in future versions to support async unload.'
* @param params.responseCallback - Callback invoked with final full response string.
48
-
* @param params.chatConfig - Optional chat configuration forwarded to ExecuTorch.
48
+
* @param params.chatConfig - Chat configuration forwarded to ExecuTorch.
49
49
*/
50
50
constructor({
51
51
modelSource,
@@ -88,10 +88,9 @@ export class ExecuTorchLLM implements LLM {
88
88
}
89
89
90
90
/**
91
-
* Interrupts current generation. Note: interrupt is synchronous in ExecuTorch
92
-
* at the time of writing; this method resolves immediately after calling interrupt.
91
+
* Interrupts current generation.
92
+
* Note: current ExecuTorch interrupt is synchronous.
93
93
* Awaiting this method will not guarantee completion.
94
-
* @returns Promise that resolves when interrupt is initiated.
95
94
*/
96
95
asyncinterrupt(){
97
96
console.warn(
@@ -101,15 +100,16 @@ export class ExecuTorchLLM implements LLM {
101
100
}
102
101
103
102
/**
104
-
* Unloads the underlying module. Note: unload is synchronous in ExecuTorch.
103
+
* Unloads the underlying module.
104
+
* Note: current ExecuTorch unload is synchronous.
105
105
* Awaiting this method will not guarantee completion.
106
-
* @returns Promise that resolves when unload is initiated.
107
106
*/
108
107
asyncunload(){
109
108
console.warn(
110
109
'This function will call a synchronous unload on the instance of LLMModule from React Native ExecuTorch. Awaiting this method will not guarantee completion. This may change in future versions to support async unload.'
0 commit comments