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 VirtualModulesPlugin from "webpack-virtual-modules";2import { CompilationContext, JsPlugin } from "@farmfe/core";3import { Compilation, Compiler as RspackCompiler, LoaderContext, RspackPluginInstance } from "@rspack/core";4import { BuildOptions, Loader, Plugin as EsbuildPlugin, PluginBuild } from "esbuild";5import { Plugin as RolldownPlugin } from "rolldown";6import { AstNode, EmittedAsset, Plugin as RollupPlugin, PluginContextMeta, SourceMapInput } from "rollup";7import { Plugin as UnloaderPlugin } from "unloader";8import { Plugin as VitePlugin } from "vite";9import { Compilation as Compilation$1, Compiler as WebpackCompiler, LoaderContext as LoaderContext$1, WebpackPluginInstance } from "webpack";10 11//#region src/types.d.ts12type Thenable<T> = T | Promise<T>;13/**14* Null or whatever15*/16type Nullable<T> = T | null | undefined;17/**18* Array, or not yet19*/20type Arrayable<T> = T | Array<T>;21interface SourceMapCompact {22 file?: string | undefined;23 mappings: string;24 names: string[];25 sourceRoot?: string | undefined;26 sources: string[];27 sourcesContent?: (string | null)[] | undefined;28 version: number;29}30type TransformResult = string | {31 code: string;32 map?: SourceMapInput | SourceMapCompact | null | undefined;33} | null | undefined | void;34interface ExternalIdResult {35 id: string;36 external?: boolean | undefined;37}38type NativeBuildContext = {39 framework: "webpack";40 compiler: WebpackCompiler;41 compilation?: Compilation$1 | undefined;42 loaderContext?: LoaderContext$1<{43 unpluginName: string;44 }> | undefined;45 inputSourceMap?: any;46} | {47 framework: "esbuild";48 build: PluginBuild;49} | {50 framework: "rspack";51 compiler: RspackCompiler;52 compilation: Compilation;53 loaderContext?: LoaderContext | undefined;54 inputSourceMap?: any;55} | {56 framework: "farm";57 context: CompilationContext;58};59interface UnpluginBuildContext {60 addWatchFile: (id: string) => void;61 emitFile: (emittedFile: EmittedAsset) => void;62 getWatchFiles: () => string[];63 parse: (input: string, options?: any) => AstNode;64 getNativeBuildContext?: (() => NativeBuildContext) | undefined;65}66type StringOrRegExp = string | RegExp;67type FilterPattern = Arrayable<StringOrRegExp>;68type StringFilter = FilterPattern | {69 include?: FilterPattern | undefined;70 exclude?: FilterPattern | undefined;71};72interface HookFilter {73 id?: StringFilter | undefined;74 code?: StringFilter | undefined;75}76interface ObjectHook<T extends HookFnMap[keyof HookFnMap], F extends keyof HookFilter> {77 filter?: Pick<HookFilter, F> | undefined;78 handler: T;79}80type Hook<T extends HookFnMap[keyof HookFnMap], F extends keyof HookFilter> = T | ObjectHook<T, F>;81interface HookFnMap {82 buildStart: (this: UnpluginBuildContext) => Thenable<void>;83 buildEnd: (this: UnpluginBuildContext) => Thenable<void>;84 transform: (this: UnpluginBuildContext & UnpluginContext, code: string, id: string) => Thenable<TransformResult>;85 load: (this: UnpluginBuildContext & UnpluginContext, id: string) => Thenable<TransformResult>;86 resolveId: (this: UnpluginBuildContext & UnpluginContext, id: string, importer: string | undefined, options: {87 isEntry: boolean;88 }) => Thenable<string | ExternalIdResult | null | undefined>;89 writeBundle: (this: void) => Thenable<void>;90}91interface UnpluginOptions {92 name: string;93 enforce?: "post" | "pre" | undefined;94 buildStart?: HookFnMap["buildStart"] | undefined;95 buildEnd?: HookFnMap["buildEnd"] | undefined;96 transform?: Hook<HookFnMap["transform"], "code" | "id"> | undefined;97 load?: Hook<HookFnMap["load"], "id"> | undefined;98 resolveId?: Hook<HookFnMap["resolveId"], "id"> | undefined;99 writeBundle?: HookFnMap["writeBundle"] | undefined;100 watchChange?: ((this: UnpluginBuildContext, id: string, change: {101 event: "create" | "update" | "delete";102 }) => void) | undefined;103 /**104 * Custom predicate function to filter modules to be loaded.105 * When omitted, all modules will be included (might have potential perf impact on Webpack).106 *107 * @deprecated Use `load.filter` instead.108 */109 loadInclude?: ((id: string) => boolean | null | undefined) | undefined;110 /**111 * Custom predicate function to filter modules to be transformed.112 * When omitted, all modules will be included (might have potential perf impact on Webpack).113 *114 * @deprecated Use `transform.filter` instead.115 */116 transformInclude?: ((id: string) => boolean | null | undefined) | undefined;117 rollup?: Partial<RollupPlugin> | undefined;118 webpack?: ((compiler: WebpackCompiler) => void) | undefined;119 rspack?: ((compiler: RspackCompiler) => void) | undefined;120 vite?: Partial<VitePlugin> | undefined;121 unloader?: Partial<UnloaderPlugin> | undefined;122 rolldown?: Partial<RolldownPlugin> | undefined;123 esbuild?: {124 onResolveFilter?: RegExp | undefined;125 onLoadFilter?: RegExp | undefined;126 loader?: Loader | ((code: string, id: string) => Loader) | undefined;127 setup?: ((build: PluginBuild) => void | Promise<void>) | undefined;128 config?: ((options: BuildOptions) => void) | undefined;129 } | undefined;130 farm?: Partial<JsPlugin> | undefined;131}132interface ResolvedUnpluginOptions extends UnpluginOptions {133 __vfs?: VirtualModulesPlugin | undefined;134 __vfsModules?: Map<string, Promise<unknown>> | Set<string> | undefined;135 __virtualModulePrefix: string;136}137type UnpluginFactory<UserOptions, Nested extends boolean = boolean> = (options: UserOptions, meta: UnpluginContextMeta) => Nested extends true ? Array<UnpluginOptions> : UnpluginOptions;138type UnpluginFactoryOutput<UserOptions, Return> = undefined extends UserOptions ? (options?: UserOptions | undefined) => Return : (options: UserOptions) => Return;139interface UnpluginInstance<UserOptions, Nested extends boolean = boolean> {140 rollup: UnpluginFactoryOutput<UserOptions, Nested extends true ? Array<RollupPlugin> : RollupPlugin>;141 vite: UnpluginFactoryOutput<UserOptions, Nested extends true ? Array<VitePlugin> : VitePlugin>;142 rolldown: UnpluginFactoryOutput<UserOptions, Nested extends true ? Array<RolldownPlugin> : RolldownPlugin>;143 webpack: UnpluginFactoryOutput<UserOptions, WebpackPluginInstance>;144 rspack: UnpluginFactoryOutput<UserOptions, RspackPluginInstance>;145 esbuild: UnpluginFactoryOutput<UserOptions, EsbuildPlugin>;146 unloader: UnpluginFactoryOutput<UserOptions, Nested extends true ? Array<UnloaderPlugin> : UnloaderPlugin>;147 farm: UnpluginFactoryOutput<UserOptions, JsPlugin>;148 raw: UnpluginFactory<UserOptions, Nested>;149}150type UnpluginContextMeta = Partial<PluginContextMeta> & ({151 framework: "rollup" | "vite" | "rolldown" | "farm" | "unloader";152} | {153 framework: "webpack";154 webpack: {155 compiler: WebpackCompiler;156 };157} | {158 framework: "esbuild";159 /** Set the host plugin name of esbuild when returning multiple plugins */160 esbuildHostName?: string | undefined;161} | {162 framework: "rspack";163 rspack: {164 compiler: RspackCompiler;165 };166});167interface UnpluginMessage {168 name?: string | undefined;169 id?: string | undefined;170 message: string;171 stack?: string | undefined;172 code?: string | undefined;173 plugin?: string | undefined;174 pluginCode?: unknown | undefined;175 loc?: {176 column: number;177 file?: string | undefined;178 line: number;179 } | undefined;180 meta?: any;181}182interface UnpluginContext {183 error: (message: string | UnpluginMessage) => void;184 warn: (message: string | UnpluginMessage) => void;185}186//#endregion187//#region src/define.d.ts188declare function createUnplugin<UserOptions, Nested extends boolean = boolean>(factory: UnpluginFactory<UserOptions, Nested>): UnpluginInstance<UserOptions, Nested>;189declare function createEsbuildPlugin<UserOptions, Nested extends boolean = boolean>(factory: UnpluginFactory<UserOptions, Nested>): UnpluginInstance<UserOptions>["esbuild"];190declare function createRollupPlugin<UserOptions, Nested extends boolean = boolean>(factory: UnpluginFactory<UserOptions, Nested>): UnpluginInstance<UserOptions>["rollup"];191declare function createVitePlugin<UserOptions, Nested extends boolean = boolean>(factory: UnpluginFactory<UserOptions, Nested>): UnpluginInstance<UserOptions>["vite"];192declare function createRolldownPlugin<UserOptions, Nested extends boolean = boolean>(factory: UnpluginFactory<UserOptions, Nested>): UnpluginInstance<UserOptions>["rolldown"];193declare function createWebpackPlugin<UserOptions, Nested extends boolean = boolean>(factory: UnpluginFactory<UserOptions, Nested>): UnpluginInstance<UserOptions>["webpack"];194declare function createRspackPlugin<UserOptions, Nested extends boolean = boolean>(factory: UnpluginFactory<UserOptions, Nested>): UnpluginInstance<UserOptions>["rspack"];195declare function createFarmPlugin<UserOptions, Nested extends boolean = boolean>(factory: UnpluginFactory<UserOptions, Nested>): UnpluginInstance<UserOptions>["farm"];196declare function createUnloaderPlugin<UserOptions, Nested extends boolean = boolean>(factory: UnpluginFactory<UserOptions, Nested>): UnpluginInstance<UserOptions>["unloader"];197//#endregion198export { Arrayable, type EsbuildPlugin, ExternalIdResult, FilterPattern, Hook, HookFilter, HookFnMap, NativeBuildContext, Nullable, ObjectHook, ResolvedUnpluginOptions, type RolldownPlugin, type RollupPlugin, type RspackCompiler, type RspackPluginInstance, SourceMapCompact, StringFilter, StringOrRegExp, Thenable, TransformResult, type UnloaderPlugin, UnpluginBuildContext, UnpluginContext, UnpluginContextMeta, UnpluginFactory, UnpluginFactoryOutput, UnpluginInstance, UnpluginMessage, UnpluginOptions, type VitePlugin, type WebpackCompiler, type WebpackPluginInstance, createEsbuildPlugin, createFarmPlugin, createRolldownPlugin, createRollupPlugin, createRspackPlugin, createUnloaderPlugin, createUnplugin, createVitePlugin, createWebpackPlugin };