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
import matplotlib.pyplot as plt | |
import csv | |
def pl(threads_list, token_time_list, nn): | |
if nn: | |
plt.plot(threads_list, token_time_list) | |
else: | |
plt.plot(threads_list, token_time_list, '--', color='orange') | |
def plf(f, nn): |
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
import subprocess | |
import matplotlib.pyplot as plt | |
import re | |
# Defining the command template | |
cmd = "./build/bin/main \ | |
--seed 147369852 \ | |
--threads {threads} \ | |
--n_predict 64 \ | |
--model ./models/7B/ggml-model-q4_0.bin \ |
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
import subprocess | |
import matplotlib.pyplot as plt | |
import re | |
# Defining the command template | |
cmd = "./build/bin/main \ | |
--seed 147369852 \ | |
--threads {threads} \ | |
--n_predict 64 \ | |
--model ./models/7B/ggml-model-q4_0.bin \ |
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
--- | |
include/libwebsockets/lws-logs.h | 17 ++++------- | |
lib/core-net/client/connect.c | 7 +++-- | |
lib/core-net/client/connect3.c | 23 +++++++++------ | |
lib/core-net/close.c | 3 +- | |
lib/core-net/pollfd.c | 21 ++++++++++---- | |
lib/core-net/service.c | 20 +++++++------ | |
lib/plat/windows/windows-service.c | 44 +++++++++++++++++++---------- | |
lib/plat/windows/windows-sockets.c | 2 +- | |
lib/roles/h1/ops-h1.c | 8 ++++-- |
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
1661347630 [vh|0|default||-1]: lws_protocol_init_vhost: init default.redacted-v1 | |
1661347630 : lws_client_connect_via_info: xxxxxxxxxx supressing connection errors | |
1661347630 : lws_client_connect_via_info: role binding to h1 | |
1661347630 : lws_client_connect_via_info: vh default protocol binding to redacted-v1 | |
1661347630 : lws_client_connect_via_info: : h1 redacted-v1 entry | |
1661347630 lws_header_table_attach: [wsicli|0|WS/h1/default/redacted.redacted.com]: ah 0000000000000000 (tsi 0, count = 0) in | |
1661347630 _lws_create_ah: created ah 000000000DC19C10 (size 4096): pool length 1 | |
1661347630 [wsicli|0|WS/h1/default/redacted.redacted.com]: _lws_change_pollfd: _lws_change_pollfd LWS_NO_FDS_POS | |
1661347630 lws_header_table_attach: did attach wsi [wsicli|0|WS/h1/default/redacted.redacted.com]: ah 000000000DC19C10: count 1 (on exit) | |
1661347630 [wsicli|0|WS/h1/default/redacted.redacted.com]: lws_client_connect_2_dnsreq: lookup redacted.redacted.com:443 |
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
1661335045 lws_create_context: http: ah_data: 4096, ah: 728, max count 30000 | |
1661335045 lws_plat_pipe_create: cancel UDP skt port 61173 | |
1661335045 Compiled with MbedTLS support | |
1661335045 [vh|0|default||-1]: lws_create_vhost: Creating Vhost 'default' (serving disabled), 1 protocols, IPv6 off | |
1661335045 lws_tls_client_create_vhost_context: redacted | |
1661335045 created client ssl context for default | |
1661335045 lws_create_context: mem: per-conn: 1016 bytes + protocol rx buf | |
1661335045 lws_protocol_init: | |
1661335045 [vh|0|default||-1]: lws_protocol_init_vhost: init default.redacted-v1 | |
1661335045 : lws_client_connect_via_info: xxxxxxxxxx supressing connection errors |
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
extern crate winit; | |
use winit::{Event, WindowEvent, EventsLoop, ControlFlow}; | |
fn create_window(title: &str, events_loop: &EventsLoop) -> winit::Window { | |
let window_builder = winit::WindowBuilder::new() | |
.with_title(title) | |
.with_dimensions(300, 300) | |
.with_maximized(false); | |
window_builder |
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
on host: | |
codename=$(lsb_release -c | awk '{print $2}') | |
sudo tee /etc/apt/sources.list.d/ddebs.list << EOF | |
deb http://ddebs.ubuntu.com/ ${codename} main restricted universe multiverse | |
deb http://ddebs.ubuntu.com/ ${codename}-security main restricted universe multiverse | |
deb http://ddebs.ubuntu.com/ ${codename}-updates main restricted universe multiverse | |
deb http://ddebs.ubuntu.com/ ${codename}-proposed main restricted universe multiverse | |
EOF | |
sudo apt-get update |