mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-02 23:18:44 +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
3
third_party/radpajama/copy-gptneox.cc
vendored
3
third_party/radpajama/copy-gptneox.cc
vendored
|
@ -26,6 +26,7 @@
|
|||
│ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. │
|
||||
│ │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/log/log.h"
|
||||
#include "third_party/ggml/ggml.h"
|
||||
#include "third_party/libcxx/cstdio"
|
||||
#include "third_party/libcxx/map"
|
||||
|
@ -47,6 +48,8 @@ static const std::map<std::string, enum gptneox_ftype> GPTNEOX_FTYPE_MAP = {
|
|||
// ./quantize models/llama/ggml-model.bin models/llama/ggml-model-quant.bin type
|
||||
//
|
||||
int main(int argc, char ** argv) {
|
||||
ShowCrashReports();
|
||||
|
||||
ggjt_v1();
|
||||
ggml_time_init();
|
||||
|
||||
|
|
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;
|
||||
|
||||
|
|
3
third_party/radpajama/main-redpajama.cc
vendored
3
third_party/radpajama/main-redpajama.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"
|
||||
|
@ -83,6 +84,8 @@ int main(int argc, char ** argv) {
|
|||
gpt_params params;
|
||||
params.model = "./examples/redpajama/models/pythia/ggml-RedPajama-INCITE-Instruct-3B-v1-f16.bin";
|
||||
|
||||
ShowCrashReports();
|
||||
|
||||
if (gpt_params_parse(argc, argv, params) == false) {
|
||||
return 1;
|
||||
}
|
||||
|
|
3
third_party/radpajama/quantize-gptneox.cc
vendored
3
third_party/radpajama/quantize-gptneox.cc
vendored
|
@ -26,6 +26,7 @@
|
|||
│ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. │
|
||||
│ │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/log/log.h"
|
||||
#include "third_party/ggml/ggml.h"
|
||||
#include "third_party/libcxx/cstdio"
|
||||
#include "third_party/libcxx/map"
|
||||
|
@ -47,6 +48,8 @@ static const std::map<std::string, enum gptneox_ftype> GPTNEOX_FTYPE_MAP = {
|
|||
// ./quantize models/llama/ggml-model.bin models/llama/ggml-model-quant.bin type
|
||||
//
|
||||
int main(int argc, char ** argv) {
|
||||
ShowCrashReports();
|
||||
|
||||
ggjt_v1();
|
||||
ggml_time_init();
|
||||
|
||||
|
|
1
third_party/radpajama/radpajama.mk
vendored
1
third_party/radpajama/radpajama.mk
vendored
|
@ -79,6 +79,7 @@ THIRD_PARTY_RADPAJAMA_MAIN_DIRECTDEPS = \
|
|||
LIBC_CALLS \
|
||||
LIBC_FMT \
|
||||
LIBC_INTRIN \
|
||||
LIBC_LOG \
|
||||
LIBC_NEXGEN32E \
|
||||
LIBC_RUNTIME \
|
||||
LIBC_STDIO \
|
||||
|
|
Loading…
Add table
Reference in a new issue