Team Ai
Datasetpublic

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.

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes3.1kdownloads
index.d.ts188 linesDownload Raw Back to src
1import type { DepOptimizationOptions, SSROptions, UserConfig } from 'vite'2 3export interface CrawlFrameworkPkgsOptions {4  /**5   * Path to the root of the project that contains the `package.json`6   */7  root: string8  /**9   * Whether we're currently in a Vite build10   */11  isBuild: boolean12 13  /**14   * Path to workspace root of the project15   *16   * setting this enables crawling devDependencies of private packages inside the workspace17   * you can use `import {searchForWorkspaceRoot} from 'vite'` to find it.18   */19  workspaceRoot?: string20 21  /**22   * Optional. If a Vite user config is passed, the output Vite config will respect the23   * set `optimizeDeps` and `ssr` options so it doesn't override it24   */25  viteUserConfig?: UserConfig26  /**27   * Whether this is a framework package by checking it's `package.json`.28   * A framework package is one that exports special files that can't be processed29   * by esbuild natively. For example, exporting `.framework` files.30   *31   * @example32   * ```ts33   * return pkgJson.keywords?.includes('my-framework')34   * ```35   */36  isFrameworkPkgByJson?: (pkgJson: Record<string, any>) => boolean37  /**38   * Whether this is a framework package by checking it's name. This is39   * usually used as a fast path. Return `true` or `false` if you know 100%40   * if it's a framework package or not. Return `undefined` to fallback to41   * `isFrameworkPkgByJson`.42   *43   * @example44   * ```ts45   * return SPECIAL_PACKAGES.includes(pkgName) || undefined46   * ```47   */48  isFrameworkPkgByName?: (pkgName: string) => boolean | undefined49  /**50   * Whether this is a semi-framework package by checking it's `package.json`.51   * A semi-framework package is one that **doesn't** export special files but52   * consumes other APIs of the framework. For example, it only does53   * `import { debounce } from 'my-framework/utils'`.54   *55   * @example56   * ```ts57   * return Object.keys(pkgJson.dependencies || {}).includes('my-framework')58   * ```59   */60  isSemiFrameworkPkgByJson?: (pkgJson: Record<string, any>) => boolean61  /**62   * Whether this is a semi-framework package by checking it's name. This is63   * usually used as a fast path. Return `true` or `false` if you know 100%64   * if it's a semi-framework package or not. Return `undefined` to fallback to65   * `isSemiFrameworkPkgByJson`.66   *67   * @example68   * ```ts69   * return SPECIAL_SEMI_PACKAGES.includes(pkgName) || undefined70   * ```71   */72  isSemiFrameworkPkgByName?: (pkgName: string) => boolean | undefined73}74 75export interface CrawlFrameworkPkgsResult {76  optimizeDeps: {77    include: string[]78    exclude: string[]79  }80  ssr: {81    noExternal: string[]82    external: string[]83  }84}85 86/**87 * Crawls for framework packages starting from `<root>/package.json` to build88 * out a partial Vite config. See the source code for details of how this is built.89 */90export declare function crawlFrameworkPkgs(91  options: CrawlFrameworkPkgsOptions92): Promise<CrawlFrameworkPkgsResult>93 94/**95 * Find the `package.json` of a dep, starting from the parent, e.g. `process.cwd()`.96 * A simplified implementation of https://nodejs.org/api/esm.html#resolver-algorithm-specification97 * (PACKAGE_RESOLVE) for `package.json` specifically.98 */99export declare function findDepPkgJsonPath(100  dep: string,101  parent: string,102): Promise<string | undefined>103 104/**105 * Find the closest `package.json` path by walking `dir` upwards.106 *107 * Pass a function to `predicate` to check if the current `package.json` is the108 * one you're looking for. For example, finding `package.json` that has the109 * `name` field only. Throwing inside the `predicate` is safe and acts the same110 *  as returning false.111 */112export declare function findClosestPkgJsonPath(113  dir: string,114  predicate?: (pkgJsonPath: string) => boolean | Promise<boolean>115): Promise<string | undefined>116 117/**118 * Check if a package needs to be optimized by Vite, aka if it's CJS-only119 */120export declare function pkgNeedsOptimization(121  pkgJson: Record<string, any>,122  pkgJsonPath: string123): Promise<boolean>124 125/**126 * Check if a dependency is part of an existing `optimizeDeps.exclude` config127 * @param dep Dependency to be included128 * @param optimizeDepsExclude Existing `optimizeDeps.exclude` config129 * @example130 * ```ts131 * optimizeDeps: {132 *   include: includesToAdd.filter((dep) => !isDepExcluded(dep, existingExclude))133 * }134 * ```135 */136export declare function isDepExcluded(137  dep: string,138  optimizeDepsExclude: NonNullable<DepOptimizationOptions['exclude']>139): boolean140 141/**142 * Check if a dependency is part of an existing `optimizeDeps.include` config143 * @param dep Dependency to be excluded144 * @param optimizeDepsInclude Existing `optimizeDeps.include` config145 * @example146 * ```ts147 * optimizeDeps: {148 *   exclude: excludesToAdd.filter((dep) => !isDepIncluded(dep, existingInclude))149 * }150 * ```151 */152export declare function isDepIncluded(153  dep: string,154  optimizeDepsInclude: NonNullable<DepOptimizationOptions['include']>155): boolean156 157/**158 * Check if a dependency is part of an existing `ssr.noExternal` config159 * @param dep Dependency to be excluded160 * @param ssrNoExternal Existing `ssr.noExternal` config161 * @example162 * ```ts163 * ssr: {164 *   external: externalsToAdd.filter((dep) => !isDepNoExternal(dep, existingNoExternal))165 * }166 * ```167 */168export declare function isDepNoExternaled(169  dep: string,170  ssrNoExternal: NonNullable<SSROptions['noExternal']>171): boolean172 173/**174 * Check if a dependency is part of an existing `ssr.external` config175 * @param dep Dependency to be noExternaled176 * @param ssrExternal Existing `ssr.external` config177 * @example178 * ```ts179 * ssr: {180 *   noExternal: noExternalsToAdd.filter((dep) => !isDepExternal(dep, existingExternal))181 * }182 * ```183 */184export declare function isDepExternaled(185  dep: string,186  ssrExternal: NonNullable<SSROptions['external']>187): boolean188 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai