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
ba2bade0
Unverified
Commit
ba2bade0
authored
Jul 07, 2023
by
Michael Yang
Committed by
GitHub
Jul 07, 2023
Browse files
Merge pull request #55 from jmorganca/fix-run-generate
fix run generate
parents
0fea50cd
303982b5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
37 deletions
+37
-37
api/types.go
api/types.go
+37
-37
No files found.
api/types.go
View file @
ba2bade0
...
...
@@ -32,55 +32,55 @@ type GenerateRequest struct {
Model
string
`json:"model"`
Prompt
string
`json:"prompt"`
ModelOptions
`json:"model_opts"`
PredictOptions
`json:"predict_opts"`
ModelOptions
`json:"model_opts
,omitempty
"`
PredictOptions
`json:"predict_opts
,omitempty
"`
}
type
ModelOptions
struct
{
ContextSize
int
`json:"context_size"`
Seed
int
`json:"seed"`
NBatch
int
`json:"n_batch"`
F16Memory
bool
`json:"memory_f16"`
MLock
bool
`json:"mlock"`
MMap
bool
`json:"mmap"`
VocabOnly
bool
`json:"vocab_only"`
LowVRAM
bool
`json:"low_vram"`
Embeddings
bool
`json:"embeddings"`
NUMA
bool
`json:"numa"`
NGPULayers
int
`json:"gpu_layers"`
MainGPU
string
`json:"main_gpu"`
TensorSplit
string
`json:"tensor_split"`
ContextSize
int
`json:"context_size
,omitempty
"`
Seed
int
`json:"seed
,omitempty
"`
NBatch
int
`json:"n_batch
,omitempty
"`
F16Memory
bool
`json:"memory_f16
,omitempty
"`
MLock
bool
`json:"mlock
,omitempty
"`
MMap
bool
`json:"mmap
,omitempty
"`
VocabOnly
bool
`json:"vocab_only
,omitempty
"`
LowVRAM
bool
`json:"low_vram
,omitempty
"`
Embeddings
bool
`json:"embeddings
,omitempty
"`
NUMA
bool
`json:"numa
,omitempty
"`
NGPULayers
int
`json:"gpu_layers
,omitempty
"`
MainGPU
string
`json:"main_gpu
,omitempty
"`
TensorSplit
string
`json:"tensor_split
,omitempty
"`
}
type
PredictOptions
struct
{
Seed
int
`json:"seed"`
Threads
int
`json:"threads"`
Tokens
int
`json:"tokens"`
TopK
int
`json:"top_k"`
Repeat
int
`json:"repeat"`
Batch
int
`json:"batch"`
NKeep
int
`json:"nkeep"`
TopP
float64
`json:"top_p"`
Temperature
float64
`json:"temp"`
Penalty
float64
`json:"penalty"`
Seed
int
`json:"seed
,omitempty
"`
Threads
int
`json:"threads
,omitempty
"`
Tokens
int
`json:"tokens
,omitempty
"`
TopK
int
`json:"top_k
,omitempty
"`
Repeat
int
`json:"repeat
,omitempty
"`
Batch
int
`json:"batch
,omitempty
"`
NKeep
int
`json:"nkeep
,omitempty
"`
TopP
float64
`json:"top_p
,omitempty
"`
Temperature
float64
`json:"temp
,omitempty
"`
Penalty
float64
`json:"penalty
,omitempty
"`
F16KV
bool
DebugMode
bool
StopPrompts
[]
string
IgnoreEOS
bool
`json:"ignore_eos"`
IgnoreEOS
bool
`json:"ignore_eos
,omitempty
"`
TailFreeSamplingZ
float64
`json:"tfs_z"`
TypicalP
float64
`json:"typical_p"`
FrequencyPenalty
float64
`json:"freq_penalty"`
PresencePenalty
float64
`json:"pres_penalty"`
Mirostat
int
`json:"mirostat"`
MirostatETA
float64
`json:"mirostat_lr"`
MirostatTAU
float64
`json:"mirostat_ent"`
PenalizeNL
bool
`json:"penalize_nl"`
LogitBias
string
`json:"logit_bias"`
TailFreeSamplingZ
float64
`json:"tfs_z
,omitempty
"`
TypicalP
float64
`json:"typical_p
,omitempty
"`
FrequencyPenalty
float64
`json:"freq_penalty
,omitempty
"`
PresencePenalty
float64
`json:"pres_penalty
,omitempty
"`
Mirostat
int
`json:"mirostat
,omitempty
"`
MirostatETA
float64
`json:"mirostat_lr
,omitempty
"`
MirostatTAU
float64
`json:"mirostat_ent
,omitempty
"`
PenalizeNL
bool
`json:"penalize_nl
,omitempty
"`
LogitBias
string
`json:"logit_bias
,omitempty
"`
PathPromptCache
string
MLock
bool
`json:"mlock"`
MMap
bool
`json:"mmap"`
MLock
bool
`json:"mlock
,omitempty
"`
MMap
bool
`json:"mmap
,omitempty
"`
PromptCacheAll
bool
PromptCacheRO
bool
MainGPU
string
...
...
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