Skip to content

Commit

Permalink
revert: models info
Browse files Browse the repository at this point in the history
Signed-off-by: axel7083 <[email protected]>
  • Loading branch information
axel7083 committed Mar 7, 2024
1 parent f85fa49 commit 56ef55a
Showing 1 changed file with 0 additions and 91 deletions.
91 changes: 0 additions & 91 deletions packages/shared/src/models/IModelInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,94 +29,3 @@ export interface ModelInfo {
file?: LocalModelInfo;
state?: 'deleting';
}

export interface ModelInfoResource {
/**
* Original link
*/
canonicalUrl: string;
/**
* Link to the paper
*/
paperUrl: string | undefined;
/**
* Repository link
*/
downloadUrl: string;
}

export interface ModelInfoAuthor {
name: string;
blurb: string;
url: string;
}

export type ModelArch =
| 'llama'
| 'pythia'
| 'gpt-neo-x'
| 'gpt-j'
| 'mpt'
| 'replit'
| 'starcoder'
| 'falcon'
| 'mistral'
| 'stablelm'
| 'phi2'
| 'qwen2'
| 'gemma';

export interface ModelInfoFile {
// identifier
name: string;
// download url
url: string;
sizeBytes: number;
quantization:
| 'q4_0'
| 'q4_1'
| 'q5_0'
| 'q5_1'
| 'q8_0'
| 'Q8_0'
| 'Q2_K'
| 'Q3_K_S'
| 'Q3_K_M'
| 'Q4_K_S'
| 'Q4_K_M'
| 'Q5_K_S'
| 'Q5_K_M'
| 'Q6_K'
| unknown;
format: 'gguf' | unknown;
sha256checksum: string;
publisher: {
name: string;
socialUrl: string;
};
respository: string;
repositoryUrl: string;
}

export interface ModelInfoRef {
name: string;
}

export interface ExtendedModelInfo {
_descriptorVersion: '0.0.1' | unknown;
datePublished: string;
name: string;
description: string;
resources: ModelInfoResource;
author: ModelInfoAuthor;
numParameters: '1.5B' | '2B' | '3B' | '4B' | '6.7B' | '7B' | '13B' | '15B' | '30B' | '65B' | unknown;
trainedFor: 'chat' | 'instruct' | 'code_completion' | 'other';
arch: ModelArch;
files: {
highlighted: {
economical: ModelInfoRef;
most_capable?: ModelInfoRef;
};
all: ModelInfoFile[];
};
}

0 comments on commit 56ef55a

Please sign in to comment.