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
tiny-invariant.ts49 linesDownload Raw Back to src
1const isProduction: boolean = process.env.NODE_ENV === 'production';2const prefix: string = 'Invariant failed';3 4/**5 * `invariant` is used to [assert](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#assertion-functions) that the `condition` is [truthy](https://github.com/getify/You-Dont-Know-JS/blob/bdbe570600d4e1107d0b131787903ca1c9ec8140/up%20%26%20going/ch2.md#truthy--falsy).6 *7 * 💥 `invariant` will `throw` an `Error` if the `condition` is [falsey](https://github.com/getify/You-Dont-Know-JS/blob/bdbe570600d4e1107d0b131787903ca1c9ec8140/up%20%26%20going/ch2.md#truthy--falsy)8 *9 * 🤏 `message`s are not displayed in production environments to help keep bundles small10 *11 * @example12 *13 * ```ts14 * const value: Person | null = { name: 'Alex' };15 * invariant(value, 'Expected value to be a person');16 * // type of `value`` has been narrowed to `Person`17 * ```18 */19export default function invariant(20  condition: any,21  // Not providing an inline default argument for message as the result is smaller22  /**23   * Can provide a string, or a function that returns a string for cases where24   * the message takes a fair amount of effort to compute25   */26  message?: string | (() => string),27): asserts condition {28  if (condition) {29    return;30  }31  // Condition not passed32 33  // In production we strip the message but still throw34  if (isProduction) {35    throw new Error(prefix);36  }37 38  // When not in production we allow the message to pass through39  // *This block will be removed in production builds*40 41  const provided: string | undefined = typeof message === 'function' ? message() : message;42 43  // Options:44  // 1. message provided: `${prefix}: ${provided}`45  // 2. message not provided: prefix46  const value: string = provided ? `${prefix}: ${provided}` : prefix;47  throw new Error(value);48}49 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai