mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-10-01 00:00:03 +00:00
feat: Merge code of gpu from dev (#7982)
This commit is contained in:
@@ -0,0 +1,111 @@
|
||||
import { ReqPage } from '.';
|
||||
|
||||
export namespace AI {
|
||||
export interface OllamaModelInfo {
|
||||
id: number;
|
||||
name: string;
|
||||
size: string;
|
||||
from: string;
|
||||
logFileExist: boolean;
|
||||
status: string;
|
||||
message: string;
|
||||
createdAt: Date;
|
||||
}
|
||||
export interface OllamaModelDropInfo {
|
||||
id: number;
|
||||
name: string;
|
||||
}
|
||||
export interface OllamaModelSearch extends ReqPage {
|
||||
info: string;
|
||||
}
|
||||
|
||||
export interface Info {
|
||||
cudaVersion: string;
|
||||
driverVersion: string;
|
||||
type: string;
|
||||
gpu: GPU[];
|
||||
}
|
||||
export interface GPU {
|
||||
index: number;
|
||||
productName: string;
|
||||
persistenceMode: string;
|
||||
busID: string;
|
||||
displayActive: string;
|
||||
ecc: string;
|
||||
fanSpeed: string;
|
||||
|
||||
temperature: string;
|
||||
performanceState: string;
|
||||
powerDraw: string;
|
||||
maxPowerLimit: string;
|
||||
memUsed: string;
|
||||
memTotal: string;
|
||||
gpuUtil: string;
|
||||
computeMode: string;
|
||||
migMode: string;
|
||||
processes: Process[];
|
||||
}
|
||||
export interface Process {
|
||||
pid: string;
|
||||
type: string;
|
||||
processName: string;
|
||||
usedMemory: string;
|
||||
}
|
||||
|
||||
export interface XpuInfo {
|
||||
type: string;
|
||||
driverVersion: string;
|
||||
xpu: Xpu[];
|
||||
}
|
||||
|
||||
interface Xpu {
|
||||
basic: Basic;
|
||||
stats: Stats;
|
||||
processes: XpuProcess[];
|
||||
}
|
||||
|
||||
interface Basic {
|
||||
deviceID: number;
|
||||
deviceName: string;
|
||||
vendorName: string;
|
||||
driverVersion: string;
|
||||
memory: string;
|
||||
freeMemory: string;
|
||||
pciBdfAddress: string;
|
||||
}
|
||||
|
||||
interface Stats {
|
||||
power: string;
|
||||
frequency: string;
|
||||
temperature: string;
|
||||
memoryUsed: string;
|
||||
memoryUtil: string;
|
||||
}
|
||||
|
||||
interface XpuProcess {
|
||||
pid: number;
|
||||
command: string;
|
||||
shr: string;
|
||||
memory: string;
|
||||
}
|
||||
|
||||
export interface BindDomain {
|
||||
domain: string;
|
||||
sslID: number;
|
||||
ipList: string;
|
||||
appInstallID: number;
|
||||
websiteID?: number;
|
||||
}
|
||||
|
||||
export interface BindDomainReq {
|
||||
appInstallID: number;
|
||||
}
|
||||
|
||||
export interface BindDomainRes {
|
||||
domain: string;
|
||||
sslID: number;
|
||||
allowIPs: string[];
|
||||
websiteID?: number;
|
||||
connUrl: string;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user