fix: filter gguf files in modelscope
This commit is contained in:
@@ -161,7 +161,7 @@ const HFModelFile: React.FC<HFModelFileProps> = forwardRef((props, ref) => {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
const fileList = _.filter(_.get(data, ['Data', 'Files']), (file: any) => {
|
const fileList = _.filter(_.get(data, ['Data', 'Files']), (file: any) => {
|
||||||
return filterRegGGUF.test(file.Path) || _.includes(file.Path, '.gguf');
|
return filterRegGGUF.test(file.Path) && file.Type === 'blob';
|
||||||
});
|
});
|
||||||
|
|
||||||
const list = _.map(fileList, (item: any) => {
|
const list = _.map(fileList, (item: any) => {
|
||||||
|
|||||||
@@ -439,7 +439,7 @@ const Resources: React.FC = () => {
|
|||||||
key="VRAM"
|
key="VRAM"
|
||||||
render={(text, record: ListItem) => {
|
render={(text, record: ListItem) => {
|
||||||
return (
|
return (
|
||||||
<span className="flex-column">
|
<span className="flex-column flex-gap-2">
|
||||||
{_.map(
|
{_.map(
|
||||||
_.sortBy(record?.status?.gpu_devices || [], ['index']),
|
_.sortBy(record?.status?.gpu_devices || [], ['index']),
|
||||||
(item: GPUDeviceItem, index: string) => {
|
(item: GPUDeviceItem, index: string) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user