This file contains hidden or 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
name: "DeepFace_set003_net" | |
input: "data" | |
input_dim: 1 | |
input_dim: 1 | |
input_dim: 128 | |
input_dim: 128 | |
layer{ | |
name: "conv1" | |
type: "Convolution" |
This file contains hidden or 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
name: "LNet" | |
input: "data" | |
input_dim: 1 | |
input_dim: 15 | |
input_dim: 24 | |
input_dim: 24 | |
layer { | |
name: "slicer_data" | |
type: "Slice" |
This file contains hidden or 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 <boost/flyweight.hpp> | |
#include <boost/multi_index_container.hpp> | |
#include <boost/multi_index/member.hpp> | |
#include <string> | |
#include <cstdint> | |
#include <vector> | |
#include <iostream> | |
#include <tuple> | |
typedef std::tuple<short, std::uint8_t, std::uint8_t> Date; |
This file contains hidden or 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 <boost/flyweight.hpp> | |
#include <boost/multi_index_container.hpp> | |
#include <boost/multi_index/member.hpp> | |
#include <string> | |
#include <cstdint> | |
#include <vector> | |
#include <iostream> | |
#include <tuple> | |
typedef std::tuple<short, std::uint8_t, std::uint8_t> Date; |
This file contains hidden or 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 <boost/flyweight.hpp> | |
#include <boost/multi_index_container.hpp> | |
#include <boost/multi_index/member.hpp> | |
#include <string> | |
#include <cstdint> | |
#include <vector> | |
#include <iostream> | |
#include <tuple> | |
typedef std::tuple<short, std::uint8_t, std::uint8_t> Date; |
This file contains hidden or 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
#!/usr/bin/env python | |
# coding: utf-8 | |
# module for http benchmarking using wrk | |
# example command like | |
# ./wrk.py --connections '[1,2,3,4]' --filename ./benchmark_qa/query.json --url http://x.y.z.k/hello.php --output 1.csv --duration 600 | |
import subprocess | |
import tempfile | |
import urlparse | |
from contextlib import contextmanager |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
# REQUIRES torchao, torch nightly (or torch 2.5) and transformers | |
from transformers import AutoTokenizer, AutoModelForCausalLM, TorchAoConfig | |
from transformers import TextStreamer | |
import torch | |
from tqdm import tqdm | |
import os | |
os.environ["TOKENIZERS_PARALLELISM"] = "false" # To prevent long warnings :) | |
torch.set_float32_matmul_precision('high') |
OlderNewer