mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-25 12:00:31 +00:00
Enable crash reports for radpajama executables
This commit is contained in:
parent
296ee3ec58
commit
89d1fad7ee
5 changed files with 15 additions and 0 deletions
5
third_party/radpajama/main-redpajama-chat.cc
vendored
5
third_party/radpajama/main-redpajama-chat.cc
vendored
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue