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
9c7f30d3
"git@developer.sourcefind.cn:change/sglang.git" did not exist on "4acf6902066c80b0c08371eaedbb8170a0b2914e"
Commit
9c7f30d3
authored
Jul 28, 2023
by
Michael Yang
Browse files
use max scan token size to hold large objects
parent
6ed3ec0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
parser/parser.go
parser/parser.go
+1
-0
No files found.
parser/parser.go
View file @
9c7f30d3
...
@@ -24,6 +24,7 @@ func Parse(reader io.Reader) ([]Command, error) {
...
@@ -24,6 +24,7 @@ func Parse(reader io.Reader) ([]Command, error) {
var
command
,
modelCommand
Command
var
command
,
modelCommand
Command
scanner
:=
bufio
.
NewScanner
(
reader
)
scanner
:=
bufio
.
NewScanner
(
reader
)
scanner
.
Buffer
(
make
([]
byte
,
0
,
bufio
.
MaxScanTokenSize
),
bufio
.
MaxScanTokenSize
)
scanner
.
Split
(
scanModelfile
)
scanner
.
Split
(
scanModelfile
)
for
scanner
.
Scan
()
{
for
scanner
.
Scan
()
{
line
:=
scanner
.
Bytes
()
line
:=
scanner
.
Bytes
()
...
...
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