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
write-file.js23 linesDownload Raw Back to rw
1var fs = require("fs"),2    encode = require("./encode");3 4module.exports = function(path, data, options, callback) {5  if (arguments.length < 4) callback = options, options = null;6 7  switch (path) {8    case "/dev/stdout": return writeStream(process.stdout, "write", data, options, callback);9    case "/dev/stderr": return writeStream(process.stderr, "write", data, options, callback);10  }11 12  fs.stat(path, function(error, stat) {13    if (error && error.code !== "ENOENT") return callback(error);14    if (stat && stat.isFile()) return fs.writeFile(path, data, options, callback);15    writeStream(fs.createWriteStream(path, options ? {flags: options.flag || "w"} : {}), "end", data, options, callback); // N.B. flag / flags16  });17};18 19function writeStream(stream, send, data, options, callback) {20  stream.on("error", function(error) { callback(error.code === "EPIPE" ? null : error); }); // ignore broken pipe, e.g., | head21  stream[send](encode(data, options), function(error) { callback(error && error.code === "EPIPE" ? null : error); });22}23 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai