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'use strict'2 3const SemVer = require('../classes/semver')4const parse = require('./parse')5const { safeRe: re, t } = require('../internal/re')6 7const coerce = (version, options) => {8 if (version instanceof SemVer) {9 return version10 }11 12 if (typeof version === 'number') {13 version = String(version)14 }15 16 if (typeof version !== 'string') {17 return null18 }19 20 options = options || {}21 22 let match = null23 if (!options.rtl) {24 match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE])25 } else {26 // Find the right-most coercible string that does not share27 // a terminus with a more left-ward coercible string.28 // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'29 // With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4'30 //31 // Walk through the string checking with a /g regexp32 // Manually set the index so as to pick up overlapping matches.33 // Stop when we get a match that ends at the string end, since no34 // coercible string can be more right-ward without the same terminus.35 const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL]36 let next37 while ((next = coerceRtlRegex.exec(version)) &&38 (!match || match.index + match[0].length !== version.length)39 ) {40 if (!match ||41 next.index + next[0].length !== match.index + match[0].length) {42 match = next43 }44 coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length45 }46 // leave it in a clean state47 coerceRtlRegex.lastIndex = -148 }49 50 if (match === null) {51 return null52 }53 54 const major = match[2]55 const minor = match[3] || '0'56 const patch = match[4] || '0'57 const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : ''58 const build = options.includePrerelease && match[6] ? `+${match[6]}` : ''59 60 return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options)61}62module.exports = coerce63 