Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
evoprompt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Grießhaber Daniel
evoprompt
Commits
d2c7b094
Commit
d2c7b094
authored
1 year ago
by
Max Kimmich
Browse files
Options
Downloads
Patches
Plain Diff
Add cli option for model path
parent
c5eb6f25
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cli.py
+3
-0
3 additions, 0 deletions
cli.py
main.py
+2
-2
2 additions, 2 deletions
main.py
with
5 additions
and
2 deletions
cli.py
+
3
−
0
View file @
d2c7b094
...
...
@@ -8,3 +8,6 @@ argument_parser.add_argument(
argument_parser
.
add_argument
(
"
--evolution-algorithm
"
,
"
-a
"
,
type
=
str
,
choices
=
[
"
ga
"
,
"
de
"
],
default
=
"
ga
"
)
argument_parser
.
add_argument
(
"
--model-path
"
,
"
-m
"
,
type
=
str
,
required
=
True
)
This diff is collapsed.
Click to expand it.
main.py
+
2
−
2
View file @
d2c7b094
...
...
@@ -308,7 +308,7 @@ if __name__ == "__main__":
case
"
llama2
"
:
logger
.
info
(
"
Using Llama2 client as the evolution engine
"
)
evolution_model
=
Llama2
(
str
(
current_directory
/
"
models/llama-2-13b-chat.Q5_K_M.gguf
"
)
,
model_path
=
options
.
model_path
,
chat
=
USE_CHAT
,
)
...
...
@@ -323,7 +323,7 @@ if __name__ == "__main__":
evaluation_model
=
evolution_model
case
"
openai
"
:
evaluation_model
=
Llama2
(
str
(
current_directory
/
"
models/llama-2-13b-chat.Q5_K_M.gguf
"
)
,
model_path
=
options
.
model_path
,
chat
=
USE_CHAT
,
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment