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
mix.ts34 linesDownload Raw Back to methods
1 2/* IMPORT */3 4import Color from '~/color';5import rgba from '~/methods/rgba';6import type {Channels} from '~/types';7 8/* MAIN */9 10//SOURCE: https://github.com/sass/dart-sass/blob/7457d2e9e7e623d9844ffd037a070cf32d39c348/lib/src/functions/color.dart#L718-L75611 12const mix = ( color1: string | Channels, color2: string | Channels, weight: number = 50 ): string => {13 14  const {r: r1, g: g1, b: b1, a: a1} = Color.parse ( color1 );15  const {r: r2, g: g2, b: b2, a: a2} = Color.parse ( color2 );16  const weightScale = weight / 100;17  const weightNormalized = ( weightScale * 2 ) - 1;18  const alphaDelta = a1 - a2;19  const weight1combined = ( ( weightNormalized * alphaDelta ) === -1 ) ? weightNormalized : ( weightNormalized + alphaDelta ) / ( 1 + weightNormalized * alphaDelta );20  const weight1 = ( weight1combined + 1 ) / 2;21  const weight2 = 1 - weight1;22  const r = ( r1 * weight1 ) + ( r2 * weight2 );23  const g = ( g1 * weight1 ) + ( g2 * weight2 );24  const b = ( b1 * weight1 ) + ( b2 * weight2 );25  const a = ( a1 * weightScale ) + ( a2 * ( 1 - weightScale ) );26 27  return rgba ( r, g, b, a );28 29};30 31/* EXPORT */32 33export default mix;34 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai