Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logging #142

Merged
merged 3 commits into from
Jul 18, 2024
Merged

Add logging #142

merged 3 commits into from
Jul 18, 2024

Conversation

imbev
Copy link
Contributor

@imbev imbev commented Jul 17, 2024

No description provided.

@imbev
Copy link
Contributor Author

imbev commented Jul 17, 2024

Sample log output:

Application started at 07:48:51 AM
INFO	[main.py | main] Alpaca version: 0.9.6.1
INFO	[local_instance.py | start] Starting Alpaca's Ollama instance...
INFO	[local_instance.py | start] Started Alpaca's Ollama instance
[GIN] 2024/07/17 - 07:48:55 | 200 |      25.702µs |       127.0.0.1 | GET      "/"
[GIN] 2024/07/17 - 07:48:55 | 200 |     510.269µs |       127.0.0.1 | GET      "/api/tags"
INFO [main] build info | build=1 commit="7c26775" tid="139791476774784" timestamp=1721220541
INFO [main] system info | n_threads=8 n_threads_batch=-1 system_info="AVX = 1 | AVX_VNNI = 0 | AVX2 = 1 | AVX512 = 0 | AVX512_VBMI = 0 | AVX512_VNNI = 0 | AVX512_BF16 = 0 | FMA = 1 | NEON = 0 | SVE = 0 | ARM_FMA = 0 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 0 | SSE3 = 1 | SSSE3 = 1 | VSX = 0 | MATMUL_INT8 = 0 | LLAMAFILE = 1 | " tid="139791476774784" timestamp=1721220541 total_threads=16
INFO [main] HTTP server listening | hostname="127.0.0.1" n_threads_http="15" port="36191" tid="139791476774784" timestamp=1721220541
INFO [main] model loaded | tid="139791476774784" timestamp=1721220543
[GIN] 2024/07/17 - 07:49:15 | 200 | 13.934007551s |       127.0.0.1 | POST     "/api/chat"
INFO	[window.py | closing_app] Closing app...
INFO	[local_instance.py | stop] Stopping Alpaca's Ollama instance
INFO	[local_instance.py | stop] Stopped Alpaca's Ollama instance
Application exited

@imbev
Copy link
Contributor Author

imbev commented Jul 17, 2024

This resolves #36

@Jeffser
Copy link
Owner

Jeffser commented Jul 18, 2024

Oh wow thanks for the work!

@Jeffser Jeffser merged commit 92f1b62 into Jeffser:main Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants