Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1import { ChildProcess, SpawnOptions, SpawnSyncOptions } from "node:child_process";2import { Readable } from "node:stream";3 4//#region src/normalize.d.ts5interface NormalizedSpawnCommand {6 command: string;7 args: readonly string[];8 options: SpawnOptions;9}10/**11 * Normalizes the command and arguments to work cross-platform.12 * On Windows, this basically handles things like shebangs, calling13 * `node_modules/.bin` commands, and escaping meta characters.14 * On other platforms, it just returns the command and arguments as-is.15 */16declare function normalizeSpawnCommand(command: string, args?: readonly string[], options?: SpawnOptions): NormalizedSpawnCommand;17//#endregion18//#region src/non-zero-exit-error.d.ts19declare class NonZeroExitError extends Error {20 readonly result: CommonOutputApi;21 readonly output?: Output | undefined;22 get exitCode(): number | undefined;23 constructor(result: CommonOutputApi, output?: Output | undefined);24}25//#endregion26//#region src/main.d.ts27interface Output {28 stderr: string;29 stdout: string;30 exitCode: number | undefined;31}32interface PipeOptions extends Options {}33type KillSignal = Parameters<ChildProcess['kill']>[0];34interface CommonOutputApi {35 get pid(): number | undefined;36 get killed(): boolean;37 get exitCode(): number | undefined;38}39interface OutputApi extends AsyncIterable<string>, CommonOutputApi {40 process: ChildProcess | undefined;41 get aborted(): boolean;42 pipe(command: string, args?: readonly string[], options?: Partial<PipeOptions>): Result;43 kill(signal?: KillSignal): boolean;44}45interface OutputApiSync extends Iterable<string>, CommonOutputApi {}46type Result = PromiseLike<Output> & OutputApi;47type SyncResult = Output & OutputApiSync;48interface CommonOptions {49 timeout: number;50 throwOnError: boolean;51 nodePath: boolean;52}53interface Options extends CommonOptions {54 signal: AbortSignal;55 nodeOptions: SpawnOptions;56 persist: boolean;57 stdin: Result | ExecProcess | string;58}59interface SyncOptions extends CommonOptions {60 nodeOptions: SpawnSyncOptions;61}62interface TinyExec {63 (command: string, args?: readonly string[], options?: Partial<Options>): Result;64}65declare class ExecProcess implements Result {66 protected _process?: ChildProcess;67 protected _aborted: boolean;68 protected _options: Partial<Options>;69 protected _command: string;70 protected _args: readonly string[];71 protected _resolveClose?: () => void;72 protected _processClosed: Promise<void>;73 protected _thrownError?: Error;74 get process(): ChildProcess | undefined;75 get pid(): number | undefined;76 get exitCode(): number | undefined;77 constructor(command: string, args?: readonly string[], options?: Partial<Options>);78 kill(signal?: KillSignal): boolean;79 get aborted(): boolean;80 get killed(): boolean;81 pipe(command: string, args?: readonly string[], options?: Partial<PipeOptions>): Result;82 [Symbol.asyncIterator](): AsyncIterator<string>;83 protected _waitForOutput(): Promise<Output>;84 then<TResult1 = Output, TResult2 = never>(onfulfilled?: ((value: Output) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;85 protected _streamOut?: Readable;86 protected _streamErr?: Readable;87 spawn(): void;88 protected _resetState(): void;89 protected _onError: (err: Error) => void;90 protected _onClose: () => void;91}92declare function xSync(command: string, args?: readonly string[], options?: Partial<SyncOptions>): SyncResult;93declare const x: TinyExec;94declare const exec: TinyExec;95declare const execSync: typeof xSync;96//#endregion97export { CommonOptions, CommonOutputApi, ExecProcess, KillSignal, NonZeroExitError, Options, Output, OutputApi, OutputApiSync, PipeOptions, Result, SyncOptions, SyncResult, TinyExec, exec, execSync, normalizeSpawnCommand, x, xSync };