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
dc92b137
Commit
dc92b137
authored
7 months ago
by
Grießhaber Daniel
Browse files
Options
Downloads
Patches
Plain Diff
fix backend task instantiation
parent
c69e1629
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
evoprompt/api/backend.py
+3
-3
3 additions, 3 deletions
evoprompt/api/backend.py
with
3 additions
and
3 deletions
evoprompt/api/backend.py
+
3
−
3
View file @
dc92b137
...
...
@@ -10,7 +10,7 @@ from evoprompt.api import config
from
evoprompt.cli
import
argument_parser
from
evoprompt.evolution
import
GeneticAlgorithm
from
evoprompt.models
import
Llama
,
LLMModel
from
evoprompt.task
import
S
entiment
A
nalysis
from
evoprompt.task
.s
entiment
_a
nalysis
import
SST2
class
MultiProcessOptimizer
:
...
...
@@ -34,7 +34,7 @@ class MultiProcessOptimizer:
[
"
--debug
"
if
debug
else
""
,
"
--task
"
,
S
entimentAnalysis
.
shorthand
,
S
ST2
.
shorthand
,
]
)
...
...
@@ -55,7 +55,7 @@ class MultiProcessOptimizer:
).
result
()
# currently fix task
task
=
S
entimentAnalysis
(
evaluation_model
,
self
.
options
)
task
=
S
ST2
(
evaluation_model
,
**
vars
(
self
.
options
)
)
optimizer_class
=
GeneticAlgorithm
# optimizer_class = DifferentialEvolution
...
...
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