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
AsyncIteratorClose.js71 linesDownload Raw Back to 2021
1'use strict';2 3var GetIntrinsic = require('get-intrinsic');4 5var $SyntaxError = require('es-errors/syntax');6var $TypeError = require('es-errors/type');7var isObject = require('es-object-atoms/isObject');8var $Promise = GetIntrinsic('%Promise%', true);9 10var Call = require('./Call');11var CompletionRecord = require('./CompletionRecord');12var GetMethod = require('./GetMethod');13 14var isIteratorRecord = require('../helpers/records/iterator-record-2023');15 16var callBound = require('call-bound');17 18var $then = callBound('Promise.prototype.then', true);19 20// https://262.ecma-international.org/12.0/#sec-asynciteratorclose21 22module.exports = function AsyncIteratorClose(iteratorRecord, completion) {23	if (!isIteratorRecord(iteratorRecord)) {24		throw new $TypeError('Assertion failed: `iteratorRecord` must be an Iterator Record'); // step 125	}26 27	if (!(completion instanceof CompletionRecord)) {28		throw new $TypeError('Assertion failed: completion is not a Completion Record instance'); // step 229	}30 31	if (!$then) {32		throw new $SyntaxError('This environment does not support Promises.');33	}34 35	var iterator = iteratorRecord['[[Iterator]]']; // step 336 37	return $then(38		$then(39			$then(40				new $Promise(function (resolve) {41					resolve(GetMethod(iterator, 'return')); // step 442					// resolve(Call(ret, iterator, [])); // step 643				}),44				function (returnV) { // step 5.a45					if (typeof returnV === 'undefined') {46						return completion; // step 5.b47					}48					return Call(returnV, iterator); // step 5.c, 5.d.49				}50			),51			null,52			function (e) {53				if (completion.type() === 'throw') {54					completion['?'](); // step 655				} else {56					throw e; // step 757				}58			}59		),60		function (innerResult) { // step 861			if (completion.type() === 'throw') {62				completion['?'](); // step 663			}64			if (!isObject(innerResult)) {65				throw new $TypeError('`innerResult` must be an Object'); // step 1066			}67			return completion;68		}69	);70};71 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai