fix: merge gpu arch and os tensorrt models (#3299)
Signed-off-by: James <namnh0122@gmail.com>
This commit is contained in:
parent
602097909d
commit
aa7dbdc9fa
@ -174,11 +174,22 @@ export const getEngineAndBranches = async (
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if (branch.includes('tensorrt-llm')) {
|
if (branch.includes('tensorrt-llm')) {
|
||||||
const fileSize = await getFileSizeByRepoAndBranch(name, branch)
|
const mergedBranchName = branch.split('-').slice(0, -2).join('-')
|
||||||
engineToBranches.tensorrtllm.push({
|
let isAlreadyAdded = false
|
||||||
name: branch,
|
// check if the branch is already added
|
||||||
fileSize: fileSize,
|
for (const branch of engineToBranches.tensorrtllm) {
|
||||||
})
|
if (branch.name.includes(mergedBranchName)) {
|
||||||
|
isAlreadyAdded = true
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!isAlreadyAdded) {
|
||||||
|
const fileSize = await getFileSizeByRepoAndBranch(name, branch)
|
||||||
|
engineToBranches.tensorrtllm.push({
|
||||||
|
name: mergedBranchName,
|
||||||
|
fileSize: fileSize,
|
||||||
|
})
|
||||||
|
}
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user