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
0likes3kdownloads
utils.js43 linesDownload Raw Back to src
1const fs = require('fs');2const path = require('path');3const flatted = require('flatted');4 5function tryParse(filePath, defaultValue) {6  let result;7  try {8    result = readJSON(filePath);9  } catch (ex) {10    result = defaultValue;11  }12  return result;13}14 15/**16 * Read json file synchronously using flatted17 *18 * @param  {String} filePath Json filepath19 * @returns {*} parse result20 */21function readJSON(filePath) {22  return flatted.parse(23    fs.readFileSync(filePath, {24      encoding: 'utf8',25    })26  );27}28 29/**30 * Write json file synchronously using circular-json31 *32 * @param  {String} filePath Json filepath33 * @param  {*} data Object to serialize34 */35function writeJSON(filePath, data) {36  fs.mkdirSync(path.dirname(filePath), {37    recursive: true,38  });39  fs.writeFileSync(filePath, flatted.stringify(data));40}41 42module.exports = { tryParse, readJSON, writeJSON };43 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai