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
1import fs from 'node:fs';2 3let isDockerCached;4 5function hasDockerEnv() {6 try {7 fs.statSync('/.dockerenv');8 return true;9 } catch {10 return false;11 }12}13 14function hasDockerCGroup() {15 try {16 return fs.readFileSync('/proc/self/cgroup', 'utf8').includes('docker');17 } catch {18 return false;19 }20}21 22export default function isDocker() {23 // TODO: Use `??=` when targeting Node.js 16.24 if (isDockerCached === undefined) {25 isDockerCached = hasDockerEnv() || hasDockerCGroup();26 }27 28 return isDockerCached;29}30 