Skip to content

Instantly share code, notes, and snippets.

View alexanderguzhva's full-sized avatar

Alexander Guzhva alexanderguzhva

View GitHub Profile
diff --git a/examples/03_bert/demo.py b/examples/03_bert/demo.py
--- a/examples/03_bert/demo.py
+++ b/examples/03_bert/demo.py
@@ -16,11 +16,11 @@
import torch
-from transformers import BertTokenizer
-
from benchmark_ait import compile_module
cvt.u32.u64 %r6, %rd5;
cvt.u32.u64 %r7, %rd4;
rem.u32 %r8, %r7, %r6;
cvt.u64.u32 %rd38, %r8;
$L__BB141_4:
add.s64 %rd9, %rd4, 1;
and.b64 %rd27, %rd9, -4294967296;
setp.eq.s64 %p3, %rd27, 0;
@%p3 bra $L__BB141_6;
cvt.u32.u64 %r6, %rd5;
cvt.u32.u64 %r7, %rd4;
rem.u32 %r8, %r7, %r6;
cvt.u64.u32 %rd38, %r8;
$L__BB141_4:
add.s64 %rd9, %rd4, 1;
and.b64 %rd27, %rd9, -4294967296;
setp.eq.s64 %p3, %rd27, 0;
@%p3 bra $L__BB141_6;
#include <cstddef>
#include <cstdint>
#include <iostream>
#include <memory>
#include <optional>
#include <random>
#include <vector>
#include <raft/core/device_resources.hpp>
#include <raft/distance/distance_types.hpp>
@alexanderguzhva
alexanderguzhva / 'journalctl -r' of master since boot
Created July 8, 2015 02:07
journactl -r for master and minion, kubernetes 0.20.1 rc
This file has been truncated, but you can view the full file.
-- Logs begin at Tue 2015-02-24 15:27:58 UTC, end at Wed 2015-07-08 01:52:59 UTC. --
Jul 08 01:52:59 kubernetes-master kube-addons.sh[6354]: == Failed to start Secret-for-token-for-user-kube_proxy in namespace kube-system at 2015-07-08T01:52:59+0000. 59 tries remaining. ==
Jul 08 01:52:59 kubernetes-master kube-addons.sh[6354]: Error from server: error when creating "STDIN": secrets "token-kube-proxy" already exists
Jul 08 01:52:59 kubernetes-master kube-addons.sh[6354]: == Failed to start Secret-for-token-for-user-kubelet in namespace kube-system at 2015-07-08T01:52:59+0000. 59 tries remaining. ==
Jul 08 01:52:59 kubernetes-master kube-addons.sh[6354]: Error from server: error when creating "STDIN": secrets "token-kubelet" already exists
Jul 08 01:52:58 kubernetes-master kube-addons.sh[6354]: == Failed to start /etc/kubernetes/addons/namespace.yaml in namespace at 2015-07-08T01:52:58+0000. 59 tries remaining. ==
Jul 08 01:52:58 kubernetes-master kube-addons.sh[6354]: Error from server: error when creating "
@alexanderguzhva
alexanderguzhva / gist:3fc6c3083f7d4eb20667
Created June 30, 2015 04:02
kubernetes v0.20.1, new cluster
(sorry for special characters & unicode symbols, it's almost midnight)
Bringing machine 'master' up with 'virtualbox' provider...
Bringing machine 'minion-1' up with 'virtualbox' provider...
Bringing machine 'minion-2' up with 'virtualbox' provider...
==> master: Importing base box 'kube-fedora21'...
Progress: 20%
Progress: 30%
Progress: 40%
@alexanderguzhva
alexanderguzhva / gist:9f46b5367f33eca29772
Created June 30, 2015 03:50
kubernetes v0.20.1 cluster up log
(sorry for special & unicode characters, it's 11:45 PM)
Bringing machine 'master' up with 'virtualbox' provider...
Bringing machine 'minion-1' up with 'virtualbox' provider...
Bringing machine 'minion-2' up with 'virtualbox' provider...
==> master: Clearing any previously set forwarded ports...
==> master: Clearing any previously set network interfaces...
==> master: Preparing network interfaces based on configuration...
master: Adapter 1: nat
master: Adapter 2: hostonly