Add example of token splitting
This commit is contained in:
parent
b11e63ce43
commit
42fb6707e8
1 changed files with 10 additions and 0 deletions
|
@ -529,6 +529,16 @@ If `with_pieces` is `true`:
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
With input 'á' (utf8 hex: C3 A1) on tinyllama/stories260k
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"tokens": [
|
||||||
|
{"id": 198, "piece": [195]}, // hex C3
|
||||||
|
{"id": 164, "piece": [161]} // hex A1
|
||||||
|
]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### POST `/detokenize`: Convert tokens to text
|
### POST `/detokenize`: Convert tokens to text
|
||||||
|
|
||||||
*Options:*
|
*Options:*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue