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
truncate.js49 linesDownload Raw Back to functions
1'use strict'2 3const parse = require('./parse')4const constants = require('../internal/constants')5const SemVer = require('../classes/semver')6 7const truncate = (version, truncation, options) => {8  if (!constants.RELEASE_TYPES.includes(truncation)) {9    return null10  }11 12  const clonedVersion = cloneInputVersion(version, options)13  return clonedVersion && doTruncation(clonedVersion, truncation)14}15 16const cloneInputVersion = (version, options) => {17  const versionStringToParse = (18    version instanceof SemVer ? version.version : version19  )20 21  return parse(versionStringToParse, options)22}23 24const doTruncation = (version, truncation) => {25  if (isPrerelease(truncation)) {26    return version.version27  }28 29  version.prerelease = []30 31  switch (truncation) {32    case 'major':33      version.minor = 034      version.patch = 035      break36    case 'minor':37      version.patch = 038      break39  }40 41  return version.format()42}43 44const isPrerelease = (type) => {45  return type.startsWith('pre')46}47 48module.exports = truncate49 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai