Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
955c317c
Unverified
Commit
955c317c
authored
May 22, 2024
by
Ikko Eltociear Ashimine
Committed by
GitHub
May 22, 2024
Browse files
chore: update tokenizer.go (#4571)
PreTokenziers -> PreTokenizers
parent
9f18b88a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
convert/tokenizer.go
convert/tokenizer.go
+2
-2
No files found.
convert/tokenizer.go
View file @
955c317c
...
...
@@ -18,7 +18,7 @@ type Tokenizer struct {
Model
TokenizerModel
`json:"model"`
PreTokenizer
struct
{
PreToken
z
iers
[]
struct
{
PreTokeni
z
ers
[]
struct
{
Type
string
`json:"type"`
Pattern
struct
{
Regex
string
`json:"Regex"`
...
...
@@ -84,7 +84,7 @@ func parseTokens(dirpath string) (pre string, tokens []Token, merges []string, e
}
sha256sum
:=
sha256
.
New
()
for
_
,
pt
:=
range
t
.
PreTokenizer
.
PreToken
z
iers
{
for
_
,
pt
:=
range
t
.
PreTokenizer
.
PreTokeni
z
ers
{
switch
pt
.
Type
{
case
"Split"
:
if
pt
.
Pattern
.
Regex
!=
""
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment