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
floating-ui.utils.umd.js168 linesDownload Raw Back to dist
1(function (global, factory) {2  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :3  typeof define === 'function' && define.amd ? define(['exports'], factory) :4  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.FloatingUIUtils = {}));5})(this, (function (exports) { 'use strict';6 7  /**8   * Custom positioning reference element.9   * @see https://floating-ui.com/docs/virtual-elements10   */11 12  const sides = ['top', 'right', 'bottom', 'left'];13  const alignments = ['start', 'end'];14  const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);15  const min = Math.min;16  const max = Math.max;17  const round = Math.round;18  const floor = Math.floor;19  const createCoords = v => ({20    x: v,21    y: v22  });23  const oppositeSideMap = {24    left: 'right',25    right: 'left',26    bottom: 'top',27    top: 'bottom'28  };29  function clamp(start, value, end) {30    return max(start, min(value, end));31  }32  function evaluate(value, param) {33    return typeof value === 'function' ? value(param) : value;34  }35  function getSide(placement) {36    return placement.split('-')[0];37  }38  function getAlignment(placement) {39    return placement.split('-')[1];40  }41  function getOppositeAxis(axis) {42    return axis === 'x' ? 'y' : 'x';43  }44  function getAxisLength(axis) {45    return axis === 'y' ? 'height' : 'width';46  }47  function getSideAxis(placement) {48    const firstChar = placement[0];49    return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';50  }51  function getAlignmentAxis(placement) {52    return getOppositeAxis(getSideAxis(placement));53  }54  function getAlignmentSides(placement, rects, rtl) {55    if (rtl === void 0) {56      rtl = false;57    }58    const alignment = getAlignment(placement);59    const alignmentAxis = getAlignmentAxis(placement);60    const length = getAxisLength(alignmentAxis);61    let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';62    if (rects.reference[length] > rects.floating[length]) {63      mainAlignmentSide = getOppositePlacement(mainAlignmentSide);64    }65    return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];66  }67  function getExpandedPlacements(placement) {68    const oppositePlacement = getOppositePlacement(placement);69    return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];70  }71  function getOppositeAlignmentPlacement(placement) {72    return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');73  }74  const lrPlacement = ['left', 'right'];75  const rlPlacement = ['right', 'left'];76  const tbPlacement = ['top', 'bottom'];77  const btPlacement = ['bottom', 'top'];78  function getSideList(side, isStart, rtl) {79    switch (side) {80      case 'top':81      case 'bottom':82        if (rtl) return isStart ? rlPlacement : lrPlacement;83        return isStart ? lrPlacement : rlPlacement;84      case 'left':85      case 'right':86        return isStart ? tbPlacement : btPlacement;87      default:88        return [];89    }90  }91  function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {92    const alignment = getAlignment(placement);93    let list = getSideList(getSide(placement), direction === 'start', rtl);94    if (alignment) {95      list = list.map(side => side + "-" + alignment);96      if (flipAlignment) {97        list = list.concat(list.map(getOppositeAlignmentPlacement));98      }99    }100    return list;101  }102  function getOppositePlacement(placement) {103    const side = getSide(placement);104    return oppositeSideMap[side] + placement.slice(side.length);105  }106  function expandPaddingObject(padding) {107    return {108      top: 0,109      right: 0,110      bottom: 0,111      left: 0,112      ...padding113    };114  }115  function getPaddingObject(padding) {116    return typeof padding !== 'number' ? expandPaddingObject(padding) : {117      top: padding,118      right: padding,119      bottom: padding,120      left: padding121    };122  }123  function rectToClientRect(rect) {124    const {125      x,126      y,127      width,128      height129    } = rect;130    return {131      width,132      height,133      top: y,134      left: x,135      right: x + width,136      bottom: y + height,137      x,138      y139    };140  }141 142  exports.alignments = alignments;143  exports.clamp = clamp;144  exports.createCoords = createCoords;145  exports.evaluate = evaluate;146  exports.expandPaddingObject = expandPaddingObject;147  exports.floor = floor;148  exports.getAlignment = getAlignment;149  exports.getAlignmentAxis = getAlignmentAxis;150  exports.getAlignmentSides = getAlignmentSides;151  exports.getAxisLength = getAxisLength;152  exports.getExpandedPlacements = getExpandedPlacements;153  exports.getOppositeAlignmentPlacement = getOppositeAlignmentPlacement;154  exports.getOppositeAxis = getOppositeAxis;155  exports.getOppositeAxisPlacements = getOppositeAxisPlacements;156  exports.getOppositePlacement = getOppositePlacement;157  exports.getPaddingObject = getPaddingObject;158  exports.getSide = getSide;159  exports.getSideAxis = getSideAxis;160  exports.max = max;161  exports.min = min;162  exports.placements = placements;163  exports.rectToClientRect = rectToClientRect;164  exports.round = round;165  exports.sides = sides;166 167}));168 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai