-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qwen2.5-0.5b-instruct-q8_0.gguf (!)
- Loading branch information
Showing
21 changed files
with
612 additions
and
327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ secret | |
.vscode/ | ||
models/ | ||
.canister_cache | ||
README-WIP.md | ||
|
||
# Windows | ||
.vs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#include <iostream> | ||
|
||
#include "../src/health.h" | ||
#include "../src/model.h" | ||
#include "../src/ready.h" | ||
#include "../src/run.h" | ||
#include "../src/upload.h" | ||
#include "../src/whoami.h" | ||
|
||
// The Mock IC | ||
#include "mock_ic.h" | ||
|
||
void test_canister_functions(MockIC &mockIC) { | ||
|
||
// ----------------------------------------------------------------------------- | ||
// Configs for the tests: | ||
|
||
// The pretend principals of the caller | ||
std::string my_principal{ | ||
"expmt-gtxsw-inftj-ttabj-qhp5s-nozup-n3bbo-k7zvn-dg4he-knac3-lae"}; | ||
std::string anonymous_principal{"2vxsx-fae"}; | ||
|
||
bool silent_on_trap = true; | ||
|
||
// ----------------------------------------------------------------------------- | ||
// The canister health & readiness checks | ||
// '()' -> '(variant { Ok = record { status_code = 200 : nat16} })' | ||
mockIC.run_test("health", health, "4449444c0000", | ||
"4449444c026c019aa1b2f90c7a6b01bc8a0100010100c800", | ||
silent_on_trap, anonymous_principal); | ||
|
||
// '()' -> '(variant { Err = record { Other = "Model not yet loaded"} })' | ||
mockIC.run_test( | ||
"ready", ready, "4449444c0000", | ||
"4449444c026b01b0ad8fcd0c716b01c5fed2010001010000144d6f64656c206e6f7420796574206c6f61646564", | ||
silent_on_trap, anonymous_principal); | ||
|
||
// ----------------------------------------------------------------------------- | ||
|
||
// '()' -> '("expmt-gtxsw-inftj-ttabj-qhp5s-nozup-n3bbo-k7zvn-dg4he-knac3-lae")' | ||
mockIC.run_test( | ||
"whoami", whoami, "4449444c0000", | ||
"4449444c0001713f6578706d742d67747873772d696e66746a2d747461626a2d71687035732d6e6f7a75702d6e3362626f2d6b377a766e2d64673468652d6b6e6163332d6c6165", | ||
silent_on_trap, my_principal); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#include "mock_ic.h" | ||
void test_canister_functions(MockIC &mockIC); |
Oops, something went wrong.