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 $RangeError = require('es-errors/range');4var $TypeError = require('es-errors/type');5 6var ToIndex = require('./ToIndex');7 8var isTypedArray = require('is-typed-array');9var typedArrayByteOffset = require('typed-array-byte-offset');10var typedArrayLength = require('typed-array-length');11var whichTypedArray = require('which-typed-array');12 13var tableTAO = require('./tables/typed-array-objects');14 15// https://262.ecma-international.org/12.0/#sec-validateatomicaccess16 17module.exports = function ValidateAtomicAccess(typedArray, requestIndex) {18 if (!isTypedArray(typedArray)) {19 throw new $TypeError('Assertion failed: `typedArray` must be a TypedArray'); // step 120 }21 22 var length = typedArrayLength(typedArray); // step 223 24 var accessIndex = ToIndex(requestIndex); // step 325 26 /*27 // this assertion can never be reached28 if (!(accessIndex >= 0)) {29 throw new $TypeError('Assertion failed: accessIndex >= 0'); // step 430 }31 */32 33 if (accessIndex >= length) {34 throw new $RangeError('index out of range'); // step 535 }36 37 var arrayTypeName = whichTypedArray(typedArray); // step 638 39 var taType = tableTAO.name['$' + arrayTypeName];40 var elementSize = tableTAO.size['$' + taType]; // step 741 42 var offset = typedArrayByteOffset(typedArray); // step 843 44 return (accessIndex * elementSize) + offset; // step 945};46 