fix: slider marker label
This commit is contained in:
@@ -79,8 +79,21 @@ const AdvanceConfig = () => {
|
|||||||
tooltip={{}}
|
tooltip={{}}
|
||||||
step={1024}
|
step={1024}
|
||||||
marks={{
|
marks={{
|
||||||
[modelContextData?.scaled]: 'scaled',
|
[modelContextData?.scaled]: {
|
||||||
[modelContextData?.native]: 'native'
|
label: 'scaled',
|
||||||
|
style: {
|
||||||
|
transform: 'translateX(-100%)'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
[modelContextData?.native]: {
|
||||||
|
label: 'native',
|
||||||
|
style: {
|
||||||
|
transform:
|
||||||
|
modelContextData?.scaled === modelContextData?.native
|
||||||
|
? 'translateX(-100%)'
|
||||||
|
: 'unset'
|
||||||
|
}
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
></SealSlider>
|
></SealSlider>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|||||||
@@ -414,7 +414,7 @@ const DataForm: React.FC<DataFormProps> = forwardRef((props, ref) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
fetchContextLength({ ...params, source });
|
// fetchContextLength({ ...params, source });
|
||||||
}, [isGGUF, source, localPath, modelScopeModelId, huggingfaceRepoId]);
|
}, [isGGUF, source, localPath, modelScopeModelId, huggingfaceRepoId]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user