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
root.js77 linesDownload Raw Back to lib
1'use strict'2 3let Container = require('./container')4 5let LazyResult, Processor6 7class Root extends Container {8  constructor(defaults) {9    super(defaults)10    this.type = 'root'11    if (!this.nodes) this.nodes = []12  }13 14  normalize(child, sample, type) {15    let keepBefore = new Set()16    for (let node of Array.isArray(child) ? child : [child]) {17      if (18        node &&19        typeof node === 'object' &&20        !node.parent &&21        node.raws &&22        typeof node.raws.before !== 'undefined'23      ) {24        keepBefore.add(node.raws)25      }26    }27 28    let nodes = super.normalize(child)29 30    if (sample) {31      if (type === 'prepend') {32        if (this.nodes.length > 1) {33          sample.raws.before = this.nodes[1].raws.before34        } else {35          delete sample.raws.before36        }37      } else if (this.first !== sample) {38        for (let node of nodes) {39          if (!keepBefore.has(node.raws)) {40            node.raws.before = sample.raws.before41          }42        }43      }44    }45 46    return nodes47  }48 49  removeChild(child, ignore) {50    let index = this.index(child)51 52    if (!ignore && index === 0 && this.nodes.length > 1) {53      this.nodes[1].raws.before = this.nodes[index].raws.before54    }55 56    return super.removeChild(child)57  }58 59  toResult(opts = {}) {60    let lazy = new LazyResult(new Processor(), this, opts)61    return lazy.stringify()62  }63}64 65Root.registerLazyResult = dependant => {66  LazyResult = dependant67}68 69Root.registerProcessor = dependant => {70  Processor = dependant71}72 73module.exports = Root74Root.default = Root75 76Container.registerRoot(Root)77 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai