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
1#!/usr/bin/env node2import { performance } from 'node:perf_hooks'3import module from 'node:module'4 5if (!import.meta.url.includes('node_modules')) {6 if (!process.env.DEBUG_DISABLE_SOURCE_MAP) {7 // eslint-disable-next-line n/no-unsupported-features/node-builtins -- only used in dev8 process.setSourceMapsEnabled(true)9 }10 11 process.on('unhandledRejection', (err) => {12 throw new Error('UNHANDLED PROMISE REJECTION', { cause: err })13 })14}15 16global.__vite_start_time = performance.now()17 18// check debug mode first before requiring the CLI.19const debugIndex = process.argv.findIndex((arg) => /^(?:-d|--debug)$/.test(arg))20const filterIndex = process.argv.findIndex((arg) =>21 /^(?:-f|--filter)$/.test(arg),22)23const profileIndex = process.argv.indexOf('--profile')24 25if (debugIndex > 0) {26 let value = process.argv[debugIndex + 1]27 if (!value || value[0] === '-') {28 value = 'vite:*'29 } else {30 // support debugging multiple flags with comma-separated list31 value = value32 .split(',')33 .map((v) => `vite:${v}`)34 .join(',')35 }36 process.env.DEBUG = `${37 process.env.DEBUG ? process.env.DEBUG + ',' : ''38 }${value}`39 40 if (filterIndex > 0) {41 const filter = process.argv[filterIndex + 1]42 if (filter && filter[0] !== '-') {43 process.env.VITE_DEBUG_FILTER = filter44 }45 }46}47 48function start() {49 try {50 // eslint-disable-next-line n/no-unsupported-features/node-builtins -- it is supported in Node 22.8.0+ and only called if it exists51 module.enableCompileCache?.()52 // flush the cache after 10s because the cache is not flushed until process end53 // for dev server, the cache is never flushed unless manually flushed because the process.exit is called54 // also flushing the cache in SIGINT handler seems to cause the process to hang55 setTimeout(() => {56 try {57 // eslint-disable-next-line n/no-unsupported-features/node-builtins -- it is supported in Node 22.12.0+ and only called if it exists58 module.flushCompileCache?.()59 } catch {}60 }, 10 * 1000).unref()61 } catch {}62 return import('../dist/node/cli.js')63}64 65if (profileIndex > 0) {66 process.argv.splice(profileIndex, 1)67 const next = process.argv[profileIndex]68 if (next && next[0] !== '-') {69 process.argv.splice(profileIndex, 1)70 }71 const inspector = await import('node:inspector').then((r) => r.default)72 const session = (global.__vite_profile_session = new inspector.Session())73 session.connect()74 session.post('Profiler.enable', () => {75 session.post('Profiler.start', start)76 })77} else {78 start()79}80 