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
generics.test.ts49 linesDownload Raw Back to tests
1// @ts-ignore TS61332import { expect, test } from "vitest";3 4import * as z from "zod/v3";5import { util } from "../helpers/util.js";6 7test("generics", () => {8  async function stripOuter<TData extends z.ZodTypeAny>(schema: TData, data: unknown) {9    return z10      .object({11        nested: schema, // as z.ZodTypeAny,12      })13      .transform((data) => {14        return data.nested!;15      })16      .parse({ nested: data });17  }18 19  const result = stripOuter(z.object({ a: z.string() }), { a: "asdf" });20  util.assertEqual<typeof result, Promise<{ a: string }>>(true);21});22 23// test("assignability", () => {24//   const createSchemaAndParse = <K extends string, VS extends z.ZodString>(25//     key: K,26//     valueSchema: VS,27//     data: unknown28//   ) => {29//     const schema = z.object({30//       [key]: valueSchema,31//     } as { [k in K]: VS });32//     return { [key]: valueSchema };33//     const parsed = schema.parse(data);34//     return parsed;35//     // const inferred: z.infer<z.ZodObject<{ [k in K]: VS }>> = parsed;36//     // return inferred;37//   };38//   const parsed = createSchemaAndParse("foo", z.string(), { foo: "" });39//   util.assertEqual<typeof parsed, { foo: string }>(true);40// });41 42test("nested no undefined", () => {43  const inner = z.string().or(z.array(z.string()));44  const outer = z.object({ inner });45  type outerSchema = z.infer<typeof outer>;46  z.util.assertEqual<outerSchema, { inner: string | string[] }>(true);47  expect(outer.safeParse({ inner: undefined }).success).toEqual(false);48});49 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai