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
getIteratorMethod.js51 linesDownload Raw Back to helpers
1'use strict';2 3var hasSymbols = require('has-symbols')();4var GetIntrinsic = require('get-intrinsic');5var callBound = require('call-bound');6var isString = require('is-string');7 8var $iterator = GetIntrinsic('%Symbol.iterator%', true);9var $stringSlice = callBound('String.prototype.slice');10var $String = GetIntrinsic('%String%');11 12var IsArray = require('./IsArray');13 14module.exports = function getIteratorMethod(ES, iterable) {15	var usingIterator;16	if (hasSymbols) {17		usingIterator = ES.GetMethod(iterable, $iterator);18	} else if (IsArray(iterable)) {19		usingIterator = function () {20			var i = -1;21			var arr = this;22			return {23				next: function () {24					i += 1;25					return {26						done: i >= arr.length,27						value: arr[i]28					};29				}30			};31		};32	} else if (isString(iterable)) {33		usingIterator = function () {34			var i = 0;35			return {36				next: function () {37					var nextIndex = ES.AdvanceStringIndex($String(iterable), i, true);38					var value = $stringSlice(iterable, i, nextIndex);39					i = nextIndex;40					var done = nextIndex > iterable.length;41					return {42						done: done,43						value: done ? void undefined : value44					};45				}46			};47		};48	}49	return usingIterator;50};51 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai