Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lmp_web
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
yujian
lmp_web
Commits
0332804d
Commit
0332804d
authored
May 08, 2024
by
mhw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
版本更新
parent
0e6f7290
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
87 additions
and
80 deletions
+87
-80
示例文件.zip
public/示例文件.zip
+0
-0
development.js
src/core/config/development.js
+2
-2
index.vue
src/views/gptTraining/dataServices/dataCleansing/index.vue
+1
-1
index.vue
src/views/gptTraining/dataServices/myDataSet/index.vue
+3
-3
dataImport.vue
...Services/myDataSet/versionsTableBox/dialog/dataImport.vue
+44
-42
index.vue
...raining/dataServices/myDataSet/versionsTableBox/index.vue
+1
-1
index.vue
...views/gptTraining/dataServices/onlineAnnotation/index.vue
+1
-1
dataImport.vue
...s/onlineAnnotation/versionsTableBox/dialog/dataImport.vue
+9
-6
index.vue
.../dataServices/onlineAnnotation/versionsTableBox/index.vue
+1
-1
index.vue
src/views/gptTraining/modelFineTuning/sft/index.vue
+5
-6
index.vue
...ws/gptTraining/modelManagement/modelCompression/index.vue
+4
-0
index.vue
...ews/gptTraining/modelManagement/modelDeployment/index.vue
+5
-5
index.vue
...ews/gptTraining/modelManagement/modelEvaluation/index.vue
+5
-5
index.vue
src/views/gptTraining/modelManagement/myModel/index.vue
+4
-4
index.vue
...iews/gptTraining/modelService/applicationAccess/index.vue
+2
-3
No files found.
public/示例文件.zip
0 → 100644
View file @
0332804d
File added
src/core/config/development.js
View file @
0332804d
module
.
exports
=
{
// baseUrl: 'http://218.76.0.69:8082/',
baseUrl
:
'http://192.168.0.34:8082/'
,
//
baseUrl: 'http://192.168.0.36:8082/',
//
baseUrl: 'http://192.168.0.34:8082/',
baseUrl
:
'http://192.168.0.36:8082/'
,
// baseUrl: 'http://192.168.0.34:8082/',
wsUrl
:
'ws://218.76.0.69:7860/'
,
projectName
:
'灵境大模型平台'
...
...
src/views/gptTraining/dataServices/dataCleansing/index.vue
View file @
0332804d
...
...
@@ -12,7 +12,7 @@
</div>
<div
class=
"instructionsList"
>
<div
class=
"item"
v-for=
"(item, index) in instructionsList"
:key=
"index"
>
<div>
<div
style=
"height:100%"
>
<img
class=
"img"
:src=
"item.img"
alt=
""
/>
<div
class=
"itemTitle"
>
...
...
src/views/gptTraining/dataServices/myDataSet/index.vue
View file @
0332804d
...
...
@@ -9,7 +9,7 @@
<div
class=
"instructions"
>
<div
class=
"instructionsList"
>
<div
class=
"item"
v-for=
"(item, index) in instructionsList"
:key=
"index"
>
<div>
<div
style=
"height:100%"
>
<img
class=
"img"
:src=
"item.img"
alt=
""
/>
<div
class=
"itemTitle"
>
...
...
@@ -81,7 +81,7 @@
<el-button
v-if=
"scope.row.releaseStatus==0"
type=
"text"
icon=
"el-icon-plus"
@
click=
"dataImport(scope.row)"
:size=
"defaultFormItemSize"
>
导入
</el-button>
<el-button
type=
"text"
icon=
"el-icon-reading"
v-else
:size=
"defaultFormItemSize"
@
click=
'drill(scope.row)'
>
训练
</el-button>
<template>
<el-dropdown
style=
"margin-left:15px;color: #0092FF;"
:size=
"defaultFormItemSize"
>
<el-dropdown
style=
"margin-left:15px;color: #0092FF;
font-size: 12px
"
:size=
"defaultFormItemSize"
>
<span
class=
"el-dropdown-link"
>
更多
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
</span>
...
...
@@ -194,7 +194,7 @@ export default {
'导入'
,
dataImport
,
{
area
:
[
'600px'
,
'
2
00px'
]
area
:
[
'600px'
,
'
3
00px'
]
},
{
row
:
data
}
)
...
...
src/views/gptTraining/dataServices/myDataSet/versionsTableBox/dialog/dataImport.vue
View file @
0332804d
<!--导入 -->
<
template
>
<el-form
label-position=
"left"
ref=
"form"
label-width=
"120px"
:model=
"form"
:size=
"defaultFormItemSize"
:rules=
"rules"
v-loading
.
fullscreen
.
lock=
"fullscreenLoading"
>
<el-form
label-position=
"left"
ref=
"form"
label-width=
"auto"
:model=
"form"
:size=
"defaultFormItemSize"
:rules=
"rules"
v-loading
.
fullscreen
.
lock=
"fullscreenLoading"
>
<!--
<el-form-item
label=
"数据标注状态:"
>
<el-radio
v-for=
"item in DataAnnotationState.getList()"
:key=
"item.id"
v-model=
"form.dimensionType"
:label=
"item.id"
>
{{
item
.
name
}}
</el-radio>
...
...
@@ -10,16 +9,18 @@
<el-radio
v-for=
"item in ImportFormat.getList()"
:key=
"item.id"
v-model=
"form.dimensionType"
:label=
"item.id"
>
{{
item
.
name
}}
</el-radio>
</el-form-item>
-->
<el-form-item
label=
"上传JSONL文件:"
prop=
"importFile"
>
<el-button
@
click=
"clickUp"
:size=
"defaultFormItemSize"
type=
"primary"
>
上传
<i
class=
"el-icon-upload el-icon--right"
></i></el-button>
<input
style=
"display:none"
ref=
"upFile"
type=
"file"
accept=
".JSONL"
@
change=
"fileinfo($event.target.files)"
>
<el-form-item
label=
"上传数据集文件:"
prop=
"importFile"
>
<el-button
@
click=
"clickUp"
:size=
"defaultFormItemSize"
type=
"primary"
>
上传
<i
class=
"el-icon-upload el-icon--right"
></i></el-button>
<div
class=
"el-upload__tip"
>
只能上传JSONL,TXT,XLSX,CSV文件
<el-button
type=
"text"
>
<a
target=
"_blank"
rel=
"noopener noreferrer"
href=
"/示例文件.zip"
>
示例下载
</a>
</el-button>
</div>
<input
style=
"display:none"
ref=
"upFile"
type=
"file"
accept=
".JSONL,.txt,.xlsx,.csv"
@
change=
"fileinfo($event.target.files)"
>
<div
class=
"itemFile"
v-if=
"form.importFile"
>
{{
form
.
importFile
?.
name
}}
<i
class=
"el-icon-circle-close"
style=
"color:#0092FF;cursor: pointer;"
@
click=
"clearFile()"
></i>
<i
class=
"el-icon-circle-close"
style=
"color:#0092FF;cursor: pointer;"
@
click=
"clearFile()"
></i>
</div>
</el-form-item>
<el-row
type=
"flex"
justify=
"end"
class=
"dialog-btn-layer mt20"
>
<el-button
:size=
"defaultFormItemSize"
:plain=
"true"
@
click=
"onCancel(false)"
>
取消
</el-button>
<el-button
type=
"primary"
:size=
"defaultFormItemSize"
@
click=
"onSubmit"
>
确定
</el-button>
...
...
@@ -28,68 +29,65 @@
</
template
>
<
script
>
// import { DatasetVersion } from '@/api/gptController.js';
export
default
{
data
()
{
data
()
{
return
{
fullscreenLoading
:
false
,
form
:
{
importFile
:
undefined
},
rules
:
{
importFile
:
[{
required
:
true
,
message
:
'请上传文件'
,
trigger
:
'blur'
}]
}
};
}
},
props
:
[
'isEdit'
,
'row'
],
components
:
{},
computed
:
{
},
computed
:
{},
mounted
()
{
mounted
()
{
this
.
intFrom
()
},
methods
:
{
fileinfo
(
files
)
{
console
.
log
(
files
[
0
])
;
fileinfo
(
files
)
{
console
.
log
(
files
[
0
])
this
.
form
.
importFile
=
files
[
0
]
this
.
$refs
.
upFile
.
value
=
''
},
clickUp
()
{
clickUp
()
{
this
.
$refs
.
upFile
.
click
()
},
intFrom
()
{
intFrom
()
{
this
.
form
=
{
...
this
.
form
,
datasetId
:
this
.
row
.
datasetId
,
versionId
:
this
.
row
.
versionId
}
},
onCancel
(
isSuccess
)
{
onCancel
(
isSuccess
)
{
if
(
this
.
observer
!=
null
)
{
this
.
observer
.
cancel
(
isSuccess
)
;
this
.
observer
.
cancel
(
isSuccess
)
}
},
onSubmit
()
{
onSubmit
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
fullscreenLoading
=
true
let
params
=
{};
params
=
{
...
this
.
form
};
this
.
upload
(
'/admin/app/datasetVersion/import'
,
params
).
then
(
res
=>
{
resolve
(
res
);
this
.
$message
.
success
(
'上传成功'
);
this
.
onCancel
(
true
);
this
.
fullscreenLoading
=
false
}).
catch
(
e
=>
{
this
.
fullscreenLoading
=
false
reject
(
e
);
});
let
params
=
{}
params
=
{
...
this
.
form
}
this
.
upload
(
'/admin/app/datasetVersion/import'
,
params
)
.
then
((
res
)
=>
{
resolve
(
res
)
this
.
$message
.
success
(
'上传成功'
)
this
.
onCancel
(
true
)
this
.
fullscreenLoading
=
false
})
.
catch
((
e
)
=>
{
this
.
fullscreenLoading
=
false
reject
(
e
)
})
// if (this.isEdit) {
// DatasetVersion.importFile(this, params).then(res => {
// resolve(res);
...
...
@@ -108,16 +106,16 @@ export default {
// });
// }
}
else
{
reject
()
;
reject
()
}
})
;
})
;
})
})
},
clearFile
()
{
clearFile
()
{
this
.
form
.
importFile
=
undefined
}
}
}
;
}
</
script
>
<
style
scoped
>
.inputWidth
{
...
...
@@ -133,4 +131,8 @@ export default {
font-size
:
12px
;
color
:
#909399
;
}
a
{
text-decoration
:
none
;
color
:
#0092FF
;
}
</
style
>
src/views/gptTraining/dataServices/myDataSet/versionsTableBox/index.vue
View file @
0332804d
...
...
@@ -132,7 +132,7 @@ export default {
'导入'
,
dataImport
,
{
area
:
[
'600px'
,
'
2
00px'
]
area
:
[
'600px'
,
'
3
00px'
]
},
{
row
:
data
}
)
...
...
src/views/gptTraining/dataServices/onlineAnnotation/index.vue
View file @
0332804d
...
...
@@ -9,7 +9,7 @@
<div
class=
"instructions"
>
<div
class=
"instructionsList"
>
<div
class=
"item"
v-for=
"(item, index) in instructionsList"
:key=
"index"
>
<div>
<div
style=
"height:100%"
>
<img
class=
"img"
:src=
"item.img"
alt=
""
/>
<div
class=
"itemTitle"
>
...
...
src/views/gptTraining/dataServices/onlineAnnotation/versionsTableBox/dialog/dataImport.vue
View file @
0332804d
...
...
@@ -10,13 +10,16 @@
<el-radio
v-for=
"item in ImportFormat.getList()"
:key=
"item.id"
v-model=
"form.dimensionType"
:label=
"item.id"
>
{{
item
.
name
}}
</el-radio>
</el-form-item>
-->
<el-form-item
label=
"上传JSONL文件:"
prop=
"importFile"
>
<el-button
@
click=
"clickUp"
:size=
"defaultFormItemSize"
type=
"primary"
>
上传
<i
class=
"el-icon-upload el-icon--right"
></i></el-button>
<input
style=
"display:none"
ref=
"upFile"
type=
"file"
accept=
".JSONL"
@
change=
"fileinfo($event.target.files)"
>
<el-form-item
label=
"上传数据集文件:"
prop=
"importFile"
>
<el-button
@
click=
"clickUp"
:size=
"defaultFormItemSize"
type=
"primary"
>
上传
<i
class=
"el-icon-upload el-icon--right"
></i></el-button>
<div
class=
"el-upload__tip"
>
只能上传JSONL,TXT,XLSX,CSV文件
<el-button
type=
"text"
>
<a
target=
"_blank"
rel=
"noopener noreferrer"
href=
"/示例文件.zip"
>
示例下载
</a>
</el-button>
</div>
<input
style=
"display:none"
ref=
"upFile"
type=
"file"
accept=
".JSONL,.txt,.xlsx,.csv"
@
change=
"fileinfo($event.target.files)"
>
<div
class=
"itemFile"
v-if=
"form.importFile"
>
{{
form
.
importFile
?.
name
}}
<i
class=
"el-icon-circle-close"
style=
"color:#0092FF;cursor: pointer;"
@
click=
"clearFile()"
></i>
<i
class=
"el-icon-circle-close"
style=
"color:#0092FF;cursor: pointer;"
@
click=
"clearFile()"
></i>
</div>
</el-form-item>
...
...
src/views/gptTraining/dataServices/onlineAnnotation/versionsTableBox/index.vue
View file @
0332804d
...
...
@@ -131,7 +131,7 @@ export default {
'导入'
,
dataImport
,
{
area
:
[
'600px'
,
'
2
00px'
]
area
:
[
'600px'
,
'
3
00px'
]
},
{
row
:
data
}
)
...
...
src/views/gptTraining/modelFineTuning/sft/index.vue
View file @
0332804d
...
...
@@ -10,7 +10,7 @@
<div
class=
"instructions"
>
<div
class=
"instructionsList"
>
<div
class=
"item"
v-for=
"(item, index) in instructionsList"
:key=
"index"
>
<div>
<div
style=
"height:100%"
>
<img
class=
"img"
:src=
"item.img"
alt=
""
/>
<div
class=
"itemTitle"
>
...
...
@@ -55,12 +55,11 @@
</
template
>
</vxe-column>
<vxe-column
field=
"createTime"
title=
"创建时间"
></vxe-column>
<vxe-column
field=
"operation"
title=
"操作"
>
<vxe-column
field=
"operation"
title=
"操作"
width=
"210px"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
:size=
"defaultFormItemSize"
@
click=
"particulars(scope.row)"
>
详情
</el-button>
<el-button
type=
"text"
:size=
"defaultFormItemSize"
@
click=
"newRun(scope.row)"
>
新建运行
</el-button>
<el-button
type=
"text"
:size=
"defaultFormItemSize"
@
click=
"del(scope.row)"
>
删除
</el-button>
<el-button
type=
"text"
icon=
"el-icon-menu"
:size=
"defaultFormItemSize"
@
click=
"particulars(scope.row)"
>
详情
</el-button>
<el-button
type=
"text"
icon=
"el-icon-plus"
:size=
"defaultFormItemSize"
@
click=
"newRun(scope.row)"
>
新建运行
</el-button>
<el-button
type=
"text"
icon=
"el-icon-delete"
:size=
"defaultFormItemSize"
@
click=
"del(scope.row)"
>
删除
</el-button>
<!--
<el-button
type=
"text"
:size=
"defaultFormItemSize"
@
click=
"edit(scope.row)"
>
编辑
</el-button>
<el-button
type=
"text"
:size=
"defaultFormItemSize"
@
click=
"del(scope.row)"
>
删除
</el-button>
-->
</
template
>
...
...
src/views/gptTraining/modelManagement/modelCompression/index.vue
View file @
0332804d
...
...
@@ -86,19 +86,23 @@
<vxe-column
field=
"operation"
title=
"操作"
width=
"210px"
>
<
template
slot-scope=
"scope"
>
<el-button
icon=
"el-icon-menu"
type=
"text"
:size=
"defaultFormItemSize"
@
click=
"particulars(scope.row)"
>
详情
</el-button>
<el-button
type=
"text"
icon=
"el-icon-document-copy"
:size=
"defaultFormItemSize"
@
click=
"copy(scope.row)"
>
复制
</el-button>
<el-button
icon=
"el-icon-delete"
type=
"text"
:size=
"defaultFormItemSize"
@
click=
"del(scope.row)"
...
...
src/views/gptTraining/modelManagement/modelDeployment/index.vue
View file @
0332804d
...
...
@@ -29,11 +29,11 @@
<vxe-column
field=
"updateTime"
title=
"更新时间"
></vxe-column>
<vxe-column
field=
"operation"
title=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
:size=
"defaultFormItemSize"
@
click=
"particulars(scope.row)"
>
详情
</el-button>
<el-button
type=
"text"
:size=
"defaultFormItemSize"
@
click=
"stop(scope.row)"
>
卸载
</el-button>
<el-button
type=
"text"
:size=
"defaultFormItemSize"
@
click=
"deploy(scope.row,'start')"
v-if=
"scope.row.deployStatus==-1||scope.row.deployStatus==2||scope.row.deployStatus==3"
>
启动
</el-button>
<el-button
type=
"text"
:size=
"defaultFormItemSize"
@
click=
"deploy(scope.row,'reload')"
>
重载
</el-button>
<el-button
type=
"text"
:size=
"defaultFormItemSize"
@
click=
"del(scope.row)"
>
删除
</el-button>
<el-button
type=
"text"
icon=
"el-icon-menu"
:size=
"defaultFormItemSize"
@
click=
"particulars(scope.row)"
>
详情
</el-button>
<el-button
type=
"text"
icon=
"el-icon-remove-outline"
:size=
"defaultFormItemSize"
@
click=
"stop(scope.row)"
>
卸载
</el-button>
<el-button
type=
"text"
icon=
"el-icon-circle-check"
:size=
"defaultFormItemSize"
@
click=
"deploy(scope.row,'start')"
v-if=
"scope.row.deployStatus==-1||scope.row.deployStatus==2||scope.row.deployStatus==3"
>
启动
</el-button>
<el-button
type=
"text"
icon=
"el-icon-refresh"
:size=
"defaultFormItemSize"
@
click=
"deploy(scope.row,'reload')"
>
重载
</el-button>
<el-button
type=
"text"
icon=
"el-icon-delete"
:size=
"defaultFormItemSize"
@
click=
"del(scope.row)"
>
删除
</el-button>
</
template
>
</vxe-column>
</vxe-table>
...
...
src/views/gptTraining/modelManagement/modelEvaluation/index.vue
View file @
0332804d
...
...
@@ -11,7 +11,7 @@
</div>
<div
class=
"instructionsList"
>
<div
class=
"item"
v-for=
"(item, index) in instructionsList"
:key=
"index"
>
<div>
<div
style=
"height:100%"
>
<img
class=
"img"
:src=
"item.img"
alt=
""
/>
<div
class=
"itemTitle"
>
<span
class=
"head-index"
>
{{ index + 1 }}
</span>
{{ item.title }}
...
...
@@ -46,13 +46,13 @@
<vxe-column
field=
"modelVersionId"
title=
"评估模型"
></vxe-column>
<vxe-column
field=
"createTime"
title=
"创建时间"
></vxe-column>
<!-- <vxe-column field="scoringMode" title="打分模式"></vxe-column> -->
<vxe-column
field=
"operation"
title=
"操作"
>
<vxe-column
field=
"operation"
title=
"操作"
width=
"210px"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
:size=
"defaultFormItemSize"
@
click=
"particulars(scope.row)"
>
详情
</el-button>
<el-button
type=
"text"
icon=
"el-icon-menu"
:size=
"defaultFormItemSize"
@
click=
"particulars(scope.row)"
>
详情
</el-button>
<el-button
type=
"text"
:size=
"defaultFormItemSize"
@
click=
"copy(scope.row)"
>
复制
</el-button>
<el-button
type=
"text"
icon=
"el-icon-document-copy"
:size=
"defaultFormItemSize"
@
click=
"copy(scope.row)"
>
复制
</el-button>
<el-button
type=
"text"
:size=
"defaultFormItemSize"
@
click=
"del(scope.row)"
>
删除
</el-button>
<el-button
type=
"text"
icon=
"el-icon-delete"
:size=
"defaultFormItemSize"
@
click=
"del(scope.row)"
>
删除
</el-button>
</
template
>
</vxe-column>
</vxe-table>
...
...
src/views/gptTraining/modelManagement/myModel/index.vue
View file @
0332804d
...
...
@@ -32,12 +32,12 @@
<vxe-column
field=
"lastVersionSource"
title=
"最新版本来源"
></vxe-column>
<vxe-column
field=
"versionCount"
title=
"版本数量"
></vxe-column>
<vxe-column
field=
"updateTime"
title=
"创建时间"
></vxe-column>
<vxe-column
field=
"operation"
title=
"操作"
>
<vxe-column
field=
"operation"
title=
"操作"
width=
"210px"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
:size=
"defaultFormItemSize"
@
click=
"particulars(scope.row)"
>
详情
</el-button>
<el-button
type=
"text"
:size=
"defaultFormItemSize"
@
click=
"addVersion(scope.row)"
>
新增版本
</el-button>
<el-button
type=
"text"
:size=
"defaultFormItemSize"
@
click=
"del(scope.row)"
>
删除
</el-button>
<el-button
type=
"text"
icon=
"el-icon-menu"
:size=
"defaultFormItemSize"
@
click=
"particulars(scope.row)"
>
详情
</el-button>
<el-button
type=
"text"
icon=
"el-icon-plus"
:size=
"defaultFormItemSize"
@
click=
"addVersion(scope.row)"
>
新增版本
</el-button>
<el-button
type=
"text"
icon=
"el-icon-delete"
:size=
"defaultFormItemSize"
@
click=
"del(scope.row)"
>
删除
</el-button>
</
template
>
</vxe-column>
</vxe-table>
...
...
src/views/gptTraining/modelService/applicationAccess/index.vue
View file @
0332804d
...
...
@@ -7,10 +7,9 @@
<div
class=
"title"
>
操作指引
</div>
</
template
>
<div
class=
"instructions"
>
<div
class=
"instructionsList"
>
<div
class=
"item"
v-for=
"(item, index) in instructionsList"
:key=
"index"
>
<div>
<div
style=
"height:100%"
>
<img
class=
"img"
:src=
"item.img"
alt=
""
/>
<div
class=
"itemTitle"
>
...
...
@@ -53,7 +52,7 @@
@
click=
"dataImport(scope.row)"
>
导入
</el-button
>
-->
<el-button
type=
"text"
:size=
"defaultFormItemSize"
@
click=
"del(scope.row)"
>
删除
</el-button>
<el-button
type=
"text"
icon=
"el-icon-delete"
:size=
"defaultFormItemSize"
@
click=
"del(scope.row)"
>
删除
</el-button>
</
template
>
</vxe-column>
</vxe-table>
...
...
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