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.
03k
1 2// v8 builtin format stack trace3// for when there was no previous prepareStackTrace function to call4var FormatStackTrace = require('./formatstack');5 6// some notes on the behavior below:7// because the 'stack' member is a one shot access variable (the raw stack is8// formatted on accessing it)9// we try to avoid modifying what the user would have wanted10// thus we use the previous value for prepareStackTrace11//12// The reason we store the callsite variable is because prepareStackTrace13// will not be called again once it has been called for a given error object14// but we want to support getting the stack out of the error multiple times (cause why not)15module.exports = function(err) {16 17 // save original stacktrace18 var save = Error.prepareStackTrace;19 20 // replace capture with our function21 Error.prepareStackTrace = function(err, trace) {22 23 // cache stack frames so we don't have to get them again24 // use a non-enumerable property25 Object.defineProperty(err, '_sb_callsites', {26 value: trace27 });28 29 return (save || FormatStackTrace)(err, trace);30 };31 32 // force capture of the stack frames33 err.stack;34 35 // someone already asked for the stack so we can't do this trick36 // TODO fallback to string parsing?37 if (!err._sb_callsites) {38 return [];39 }40 41 // return original capture function42 Error.prepareStackTrace = save;43 44 return err._sb_callsites;45};46 47 