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 3var GetIntrinsic = require('get-intrinsic');4 5var $TypeError = require('es-errors/type');6var $asyncIterator = GetIntrinsic('%Symbol.asyncIterator%', true);7 8var inspect = require('object-inspect');9var hasSymbols = require('has-symbols')();10 11var AdvanceStringIndex = require('./AdvanceStringIndex');12var CreateAsyncFromSyncIterator = require('./CreateAsyncFromSyncIterator');13var GetIteratorFromMethod = require('./GetIteratorFromMethod');14var GetMethod = require('./GetMethod');15 16var getIteratorMethod = require('../helpers/getIteratorMethod');17 18var ES = {19 AdvanceStringIndex: AdvanceStringIndex,20 GetMethod: GetMethod21};22 23// https://262.ecma-international.org/14.0/#sec-getiterator24 25module.exports = function GetIterator(obj, kind) {26 if (kind !== 'sync' && kind !== 'async') {27 throw new $TypeError("Assertion failed: `kind` must be one of 'sync' or 'async', got " + inspect(kind));28 }29 30 var method;31 if (kind === 'async') { // step 132 if (hasSymbols && $asyncIterator) {33 method = GetMethod(obj, $asyncIterator); // step 1.a34 }35 }36 if (typeof method === 'undefined') { // step 1.b37 // var syncMethod = GetMethod(obj, $iterator); // step 1.b.i38 var syncMethod = getIteratorMethod(ES, obj);39 if (kind === 'async') {40 if (typeof syncMethod === 'undefined') {41 throw new $TypeError('iterator method is `undefined`'); // step 1.b.ii42 }43 var syncIteratorRecord = GetIteratorFromMethod(obj, syncMethod); // step 1.b.iii44 return CreateAsyncFromSyncIterator(syncIteratorRecord); // step 1.b.iv45 }46 method = syncMethod; // step 2, kind of47 }48 49 if (typeof method === 'undefined') {50 throw new $TypeError('iterator method is `undefined`'); // step 351 }52 return GetIteratorFromMethod(obj, method); // step 453};54 