Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lmp_server
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lmp
lmp_server
Commits
030e9760
Commit
030e9760
authored
Dec 07, 2023
by
linpeiqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小bug
parent
def4bcbe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
ModelEstimateController.java
...yice/webadmin/app/controller/ModelEstimateController.java
+1
-1
TuningRunServiceImpl.java
.../yice/webadmin/app/service/impl/TuningRunServiceImpl.java
+2
-1
No files found.
application-webadmin/src/main/java/com/yice/webadmin/app/controller/ModelEstimateController.java
View file @
030e9760
...
...
@@ -125,7 +125,7 @@ public class ModelEstimateController {
array
.
add
(
jsonObject
.
get
(
"maximumGeneratingLength"
));
array
.
add
(
jsonObject
.
get
(
"ToppSamplingValue"
));
array
.
add
(
jsonObject
.
get
(
"temperatureCoefficient"
));
array
.
add
(
this
.
pythonConfig
.
getModelEstimateFileBaseDir
()
+
File
.
separator
+
modelVersion
.
getModelUrl
()
+
File
.
separator
+
"evl_"
+
taskId
);
array
.
add
(
this
.
pythonConfig
.
getModelEstimateFileBaseDir
()
+
modelVersion
.
getVersionName
()
+
File
.
separator
+
"evl_"
+
taskId
);
System
.
out
.
println
(
array
.
toJSONString
());
return
ResponseResult
.
success
(
array
.
toJSONString
());
}
...
...
application-webadmin/src/main/java/com/yice/webadmin/app/service/impl/TuningRunServiceImpl.java
View file @
030e9760
...
...
@@ -198,6 +198,7 @@ public class TuningRunServiceImpl extends BaseService<TuningRun, Long> implement
modelManageS
.
setModelDescribe
(
runPublishDto
.
getModelDescribe
());
modelManageS
.
setModelName
(
runPublishDto
.
getModelName
());
modelManageS
.
setModelType
(
runPublishDto
.
getModelType
());
modelManageS
.
setIsBaseModel
(
0
);
modelVersionURl
=
pythonConfig
.
getModelOutputFileBaseDir
()
+
runPublishDto
.
getModelName
()
+
"_V1"
;
modelVersionS
.
setModelUrl
(
modelVersionURl
);
this
.
modelManageService
.
saveAndCreateVersion
(
modelManageS
,
modelVersionS
);
...
...
@@ -234,7 +235,7 @@ public class TuningRunServiceImpl extends BaseService<TuningRun, Long> implement
if
(
receiveMsg
.
equals
(
"send_data"
))
{
JSONArray
array
=
new
JSONArray
();
array
.
add
(
"zh"
);
array
.
add
(
model
Manage
.
getModel
Name
());
array
.
add
(
model
Version
.
getVersion
Name
());
array
.
add
(
modelVersion
.
getModelUrl
());
JSONArray
ddJson
=
new
JSONArray
();
ddJson
.
add
(
"train_"
+
tuningRun
.
getRunId
());
...
...
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