-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add explain to how outlines works! in structured output
- Loading branch information
souzatharsis
committed
Dec 9, 2024
1 parent
e54eb15
commit 8617d64
Showing
23 changed files
with
717 additions
and
239 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+268 Bytes
(100%)
tamingllms/_build/.doctrees/notebooks/output_size_limit.doctree
Binary file not shown.
Binary file modified
BIN
+19.4 KB
(110%)
tamingllms/_build/.doctrees/notebooks/structured_output.doctree
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
43 changes: 43 additions & 0 deletions
43
tamingllms/_build/html/_static/structured_output/outlines_state_machine.mermaid
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,43 @@ | ||
stateDiagram-v2 | ||
%% Main FSM structure | ||
[*] --> Start | ||
Start --> First: [YyNnAa] | ||
First --> Yes: e/o | ||
First --> No: e/o | ||
First --> Never: e | ||
First --> Always: l | ||
Yes --> End: s | ||
No --> End: o | ||
Never --> End: r | ||
Always --> End: s | ||
End --> [*] | ||
|
||
%% Initial State masking table | ||
note left of Start | ||
Initial State Masking: | ||
Token │ Prob │ Mask │ Final | ||
──────────────────────────── | ||
Y │ 0.15 │ 1 │ 0.25 | ||
y │ 0.13 │ 1 │ 0.22 | ||
N │ 0.14 │ 1 │ 0.23 | ||
n │ 0.12 │ 1 │ 0.20 | ||
A │ 0.06 │ 1 │ 0.10 | ||
others│ 0.40 │ 0 │ 0.00 | ||
end note | ||
|
||
%% First State masking example | ||
note right of First | ||
After 'Y' State Masking: | ||
Token │ Prob │ Mask │ Final | ||
──────────────────────────── | ||
e │ 0.30 │ 1 │ 1.00 | ||
s │ 0.15 │ 0 │ 0.00 | ||
a │ 0.10 │ 0 │ 0.00 | ||
others│ 0.45 │ 0 │ 0.00 | ||
end note | ||
|
||
%% Final State note | ||
note left of End | ||
Final State | ||
Only accepting state | ||
end note |
Binary file added
BIN
+129 KB
tamingllms/_build/html/_static/structured_output/outlines_state_machine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.