Skip to content

Commit

Permalink
docs: add model life cycle diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobLinCool committed Jan 23, 2024
1 parent 953b397 commit ca75dd9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/whisper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,12 @@ export class Whisper {
await model.free();
}
}

/**
* Here's a life cycle diagram of a model:
* | Method | (0) Not Available | (1) Loading | (2) Available | (3) Freeing | (0) Not Available |
* |------------|-------------------|-------------|---------------|-------------|-------------------|
* | load | V | - | - | - | V |
* | free | - | - | wait tasks, V | - | - |
* | transcribe | load | load | V | load | load |
*/

0 comments on commit ca75dd9

Please sign in to comment.