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.
03k
1'use strict'2 3const req = require('./req.js')4 5/**6 * Plugin Loader7 *8 * @private9 * @method load10 *11 * @param {String} plugin PostCSS Plugin Name12 * @param {Object} options PostCSS Plugin Options13 *14 * @return {Function} PostCSS Plugin15 */16const load = (plugin, options, file) => {17 try {18 if (19 options === null ||20 options === undefined ||21 Object.keys(options).length === 022 ) {23 return req(plugin, file)24 } else {25 return req(plugin, file)(options)26 }27 } catch (err) {28 throw new Error(`Loading PostCSS Plugin failed: ${err.message}\n\n(@${file})`)29 }30}31 32/**33 * Load Plugins34 *35 * @private36 * @method plugins37 *38 * @param {Object} config PostCSS Config Plugins39 *40 * @return {Array} plugins PostCSS Plugins41 */42const plugins = (config, file) => {43 let plugins = []44 45 if (Array.isArray(config.plugins)) {46 plugins = config.plugins.filter(Boolean)47 } else {48 plugins = Object.keys(config.plugins)49 .filter((plugin) => {50 return config.plugins[plugin] !== false ? plugin : ''51 })52 .map((plugin) => {53 return load(plugin, config.plugins[plugin], file)54 })55 }56 57 if (plugins.length && plugins.length > 0) {58 plugins.forEach((plugin, i) => {59 if (plugin.default) {60 plugin = plugin.default61 }62 63 if (plugin.postcss === true) {64 plugin = plugin()65 } else if (plugin.postcss) {66 plugin = plugin.postcss67 }68 69 if (70 // eslint-disable-next-line71 !(72 (typeof plugin === 'object' && Array.isArray(plugin.plugins)) ||73 (typeof plugin === 'object' && plugin.postcssPlugin) ||74 (typeof plugin === 'function')75 )76 ) {77 throw new TypeError(`Invalid PostCSS Plugin found at: plugins[${i}]\n\n(@${file})`)78 }79 })80 }81 82 return plugins83}84 85module.exports = plugins86 