Skip to content

Commit 913d201

Browse files
committed
update debug output
1 parent c6fcef4 commit 913d201

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ jobs:
2727
run: curl -L ${MODEL_URL} --create-dirs -o models/${MODEL_NAME}
2828
- name: Run tests
2929
run: mvn test
30+
- if: failure()
31+
uses: actions/upload-artifact@v3
32+
with:
33+
path: ${{ github.workspace }}/hs_err_pid*.log
34+
if-no-files-found: warn
3035

3136
build-and-test-macos:
3237
name: ${{ matrix.target.runner }}
@@ -75,3 +80,8 @@ jobs:
7580
run: curl -L $env:MODEL_URL --create-dirs -o models/$env:MODEL_NAME
7681
- name: Run tests
7782
run: mvn test
83+
- if: failure()
84+
uses: actions/upload-artifact@v3
85+
with:
86+
path: ${{ github.workspace }}\hs_err_pid*.log
87+
if-no-files-found: warn

src/main/cpp/jllama.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,6 @@ JNIEXPORT void JNICALL Java_de_kherud_llama_LlamaModel_loadModel(JNIEnv *env, jo
358358

359359
auto *ctx_server = new server_context();
360360

361-
std::cout << "New model: " << ctx_server << std::endl;
362-
363361
std::string c_params = parse_jstring(env, jparams);
364362
json json_params = json::parse(c_params);
365363
server_params_parse(json_params, params);
@@ -478,7 +476,6 @@ JNIEXPORT jint JNICALL Java_de_kherud_llama_LlamaModel_requestCompletion(JNIEnv
478476
{
479477
jlong server_handle = env->GetLongField(obj, f_model_pointer);
480478
auto *ctx_server = reinterpret_cast<server_context *>(server_handle); // NOLINT(*-no-int-to-ptr)
481-
std::cout << "Request completion: " << ctx_server << std::endl;
482479

483480
std::string c_params = parse_jstring(env, jparams);
484481
json json_params = json::parse(c_params);

src/main/java/de/kherud/llama/LlamaModel.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public class LlamaModel implements AutoCloseable {
4242
*/
4343
public LlamaModel(ModelParameters parameters) {
4444
loadModel(parameters.toString());
45-
System.out.println(ctx);
4645
}
4746

4847
/**

0 commit comments

Comments
 (0)