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
async-iterators.js56 linesDownload Raw Back to build
1import { r as replaceTraps, a as reverseTransformCache, u as unwrap, i as instanceOfAny } from './wrap-idb-value.js';2 3const advanceMethodProps = ['continue', 'continuePrimaryKey', 'advance'];4const methodMap = {};5const advanceResults = new WeakMap();6const ittrProxiedCursorToOriginalProxy = new WeakMap();7const cursorIteratorTraps = {8    get(target, prop) {9        if (!advanceMethodProps.includes(prop))10            return target[prop];11        let cachedFunc = methodMap[prop];12        if (!cachedFunc) {13            cachedFunc = methodMap[prop] = function (...args) {14                advanceResults.set(this, ittrProxiedCursorToOriginalProxy.get(this)[prop](...args));15            };16        }17        return cachedFunc;18    },19};20async function* iterate(...args) {21    // tslint:disable-next-line:no-this-assignment22    let cursor = this;23    if (!(cursor instanceof IDBCursor)) {24        cursor = await cursor.openCursor(...args);25    }26    if (!cursor)27        return;28    cursor = cursor;29    const proxiedCursor = new Proxy(cursor, cursorIteratorTraps);30    ittrProxiedCursorToOriginalProxy.set(proxiedCursor, cursor);31    // Map this double-proxy back to the original, so other cursor methods work.32    reverseTransformCache.set(proxiedCursor, unwrap(cursor));33    while (cursor) {34        yield proxiedCursor;35        // If one of the advancing methods was not called, call continue().36        cursor = await (advanceResults.get(proxiedCursor) || cursor.continue());37        advanceResults.delete(proxiedCursor);38    }39}40function isIteratorProp(target, prop) {41    return ((prop === Symbol.asyncIterator &&42        instanceOfAny(target, [IDBIndex, IDBObjectStore, IDBCursor])) ||43        (prop === 'iterate' && instanceOfAny(target, [IDBIndex, IDBObjectStore])));44}45replaceTraps((oldTraps) => ({46    ...oldTraps,47    get(target, prop, receiver) {48        if (isIteratorProp(target, prop))49            return iterate;50        return oldTraps.get(target, prop, receiver);51    },52    has(target, prop) {53        return isIteratorProp(target, prop) || oldTraps.has(target, prop);54    },55}));56 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai