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 $pow = require('math-intrinsics/pow');6 7var $Number = GetIntrinsic('%Number%');8var $BigInt = GetIntrinsic('%BigInt%', true);9 10module.exports = function bytesAsInteger(rawBytes, elementSize, isUnsigned, isBigInt) {11 var Z = isBigInt ? $BigInt : $Number;12 13 // this is common to both branches14 var intValue = Z(0);15 for (var i = 0; i < rawBytes.length; i++) {16 intValue += Z(rawBytes[i] * $pow(2, 8 * i));17 }18 /*19 Let intValue be the byte elements of rawBytes concatenated and interpreted as a bit string encoding of an unsigned little-endian binary number.20 */21 22 if (!isUnsigned) { // steps 5-623 // Let intValue be the byte elements of rawBytes concatenated and interpreted as a bit string encoding of a binary little-endian 2's complement number of bit length elementSize × 8.24 var bitLength = elementSize * 8;25 26 if (rawBytes[elementSize - 1] & 0x80) {27 intValue -= Z($pow(2, bitLength));28 }29 }30 31 return intValue; // step 732};33 