Enable crash reports for radpajama executables

This commit is contained in:
Justine Tunney 2023-05-13 21:16:03 -07:00
parent 296ee3ec58
commit 89d1fad7ee
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
5 changed files with 15 additions and 0 deletions

View file

@ -31,6 +31,7 @@
#include "libc/calls/struct/sigaction.h"
#include "libc/calls/struct/siginfo.h"
#include "libc/calls/weirdtypes.h"
#include "libc/log/log.h"
#include "libc/runtime/pathconf.h"
#include "libc/runtime/runtime.h"
#include "libc/runtime/sysconf.h"
@ -84,6 +85,8 @@ int main(int argc, char ** argv) {
gpt_params params;
params.model = "./examples/redpajama/models/pythia/ggml-RedPajama-INCITE-Chat-3B-v1-f16.bin";
ShowCrashReports();
if (gpt_params_parse(argc, argv, params) == false) {
return 1;
}
@ -186,6 +189,8 @@ int main(int argc, char ** argv) {
return 0;
}
ShowCrashReports();
// Always interactive for RedPajama chat model
params.interactive = true;