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 path from 'node:path';2import { platforms } from './platforms.js';3 4/** @type {import('./index.js').default} */5export default function (options) {6 return {7 name: '@sveltejs/adapter-static',8 /** @param {import('./internal.js').Builder2_0_0} builder */9 async adapt(builder) {10 if (!options?.fallback && builder.config.kit.router?.type !== 'hash') {11 const dynamic_routes = builder.routes.filter((route) => route.prerender !== true);12 if (dynamic_routes.length > 0 && options?.strict !== false) {13 const prefix = path.relative('.', builder.config.kit.files.routes);14 const has_param_routes = builder.routes.some((route) => route.id.includes('['));15 const config_option =16 has_param_routes || JSON.stringify(builder.config.kit.prerender.entries) !== '["*"]'17 ? ` - adjust the \`prerender.entries\` config option ${18 has_param_routes19 ? '(routes with parameters are not part of entry points by default)'20 : ''21 } — see https://svelte.dev/docs/kit/configuration#prerender for more info.`22 : '';23 24 builder.log.error(25 `@sveltejs/adapter-static: all routes must be fully prerenderable, but found the following routes that are dynamic:26${dynamic_routes.map((route) => ` - ${path.posix.join(prefix, route.id)}`).join('\n')}27 28You have the following options:29 - set the \`fallback\` option — see https://svelte.dev/docs/kit/single-page-apps#usage for more info.30 - add \`export const prerender = true\` to your root \`+layout.js/.ts\` or \`+layout.server.js/.ts\` file. This will try to prerender all pages.31 - add \`export const prerender = true\` to any \`+server.js/ts\` files that are not fetched by page \`load\` functions.32${config_option}33 - pass \`strict: false\` to \`adapter-static\` to ignore this error. Only do this if you are sure you don't need the routes in question in your final app, as they will be unavailable. See https://github.com/sveltejs/kit/tree/main/packages/adapter-static#strict for more info.34 35If this doesn't help, you may need to use a different adapter. @sveltejs/adapter-static can only be used for sites that don't need a server for dynamic rendering, and can run on just a static file server.36See https://svelte.dev/docs/kit/page-options#prerender for more details`37 );38 throw new Error('Encountered dynamic routes');39 }40 }41 42 const platform = platforms.find((platform) => platform.test());43 44 if (platform) {45 if (options) {46 builder.log.warn(47 `Detected ${platform.name}. Please remove adapter-static options to enable zero-config mode`48 );49 } else {50 builder.log.info(`Detected ${platform.name}, using zero-config mode`);51 }52 }53 54 const {55 // @ts-ignore56 pages = 'build',57 assets = pages,58 fallback,59 precompress60 } = options ?? platform?.defaults ?? /** @type {import('./index.js').AdapterOptions} */ ({});61 62 builder.rimraf(assets);63 builder.rimraf(pages);64 65 builder.generateEnvModule();66 builder.writeClient(assets);67 builder.writePrerendered(pages);68 69 if (fallback) {70 await builder.generateFallback(path.join(pages, fallback));71 }72 73 if (precompress) {74 builder.log.minor('Compressing assets and pages');75 if (pages === assets) {76 await builder.compress(assets);77 } else {78 await Promise.all([builder.compress(assets), builder.compress(pages)]);79 }80 }81 82 if (pages === assets) {83 builder.log(`Wrote site to "${pages}"`);84 } else {85 builder.log(`Wrote pages to "${pages}" and assets to "${assets}"`);86 }87 88 if (!options) platform?.done(builder);89 }90 };91}92 