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
readme.md102 linesDownload Raw Back to p-limit
1# p-limit2 3> Run multiple promise-returning & async functions with limited concurrency4 5## Install6 7```8$ npm install p-limit9```10 11## Usage12 13```js14const pLimit = require('p-limit');15 16const limit = pLimit(1);17 18const input = [19	limit(() => fetchSomething('foo')),20	limit(() => fetchSomething('bar')),21	limit(() => doSomething())22];23 24(async () => {25	// Only one promise is run at once26	const result = await Promise.all(input);27	console.log(result);28})();29```30 31## API32 33### pLimit(concurrency)34 35Returns a `limit` function.36 37#### concurrency38 39Type: `number`\40Minimum: `1`\41Default: `Infinity`42 43Concurrency limit.44 45### limit(fn, ...args)46 47Returns the promise returned by calling `fn(...args)`.48 49#### fn50 51Type: `Function`52 53Promise-returning/async function.54 55#### args56 57Any arguments to pass through to `fn`.58 59Support for passing arguments on to the `fn` is provided in order to be able to avoid creating unnecessary closures. You probably don't need this optimization unless you're pushing a *lot* of functions.60 61### limit.activeCount62 63The number of promises that are currently running.64 65### limit.pendingCount66 67The number of promises that are waiting to run (i.e. their internal `fn` was not called yet).68 69### limit.clearQueue()70 71Discard pending promises that are waiting to run.72 73This might be useful if you want to teardown the queue at the end of your program's lifecycle or discard any function calls referencing an intermediary state of your app.74 75Note: This does not cancel promises that are already running.76 77## FAQ78 79### How is this different from the [`p-queue`](https://github.com/sindresorhus/p-queue) package?80 81This package is only about limiting the number of concurrent executions, while `p-queue` is a fully featured queue implementation with lots of different options, introspection, and ability to pause the queue.82 83## Related84 85- [p-queue](https://github.com/sindresorhus/p-queue) - Promise queue with concurrency control86- [p-throttle](https://github.com/sindresorhus/p-throttle) - Throttle promise-returning & async functions87- [p-debounce](https://github.com/sindresorhus/p-debounce) - Debounce promise-returning & async functions88- [p-all](https://github.com/sindresorhus/p-all) - Run promise-returning & async functions concurrently with optional limited concurrency89- [More…](https://github.com/sindresorhus/promise-fun)90 91---92 93<div align="center">94	<b>95		<a href="https://tidelift.com/subscription/pkg/npm-p-limit?utm_source=npm-p-limit&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>96	</b>97	<br>98	<sub>99		Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.100	</sub>101</div>102 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai