Skip to content

Instantly share code, notes, and snippets.

View arikon's full-sized avatar

Sergey Belov arikon

  • Yandex
  • Tivat, Montenegro
View GitHub Profile
@arikon
arikon / run_bench.log
Created March 31, 2023 17:11
Petals benchmark
Mar 30 20:06:18.321 [DEBUG] [urllib3.connectionpool._new_conn:1003] Starting new HTTPS connection (1): huggingface.co:443
Mar 30 20:06:19.001 [DEBUG] [urllib3.connectionpool._make_request:456] https://huggingface.co:443 "HEAD /bigscience/bloom-7b1-petals/resolve/main/config.json HTTP/1.1" 200 0
Mar 30 20:06:19.009 [INFO] Creating model...
Mar 30 20:06:28.285 [DEBUG] [hivemind.utils.mpfuture._initialize_mpfuture_backend:156] Initializing MPFuture backend for pid 1
Mar 30 20:06:28.285 [DEBUG] [asyncio.__init__:54] Using selector: EpollSelector
Mar 30 20:06:28.291 [DEBUG] [hivemind.p2p.p2p_daemon.create:221] Launching ['/opt/conda/lib/python3.10/site-packages/hivemind/hivemind_cli/p2pd', '-autoRelay=1', '-autonat=1', '-b=1', '-connManager=1', '-idleTimeout=30s', '-listen=/unix/tmp/hivemind-p2pd-uzfQ1lmMl1E.sock', '-natPortMap=1', '-relay=1', '-relayHopLimit=0', '-tls=1', '-persistentConnMaxMsgSize=4194304', '-dhtClient=1', '-bootstrapPeers=/ip4/192.168.99.252/tcp/31400/p2p/Qmcyrk8a5wqreqYRjvGQK64NC5eHwEmY8GRFtDJ
@arikon
arikon / request.sh
Created April 25, 2022 06:19
Waves Node API incorrect order
curl -X 'GET' \
'http://nodes.wavesplatform.com/transactions/address/3PJCJYt9Ev7Y7zW28iW9dcY4xzumPwvCqhs/limit/2?after=8PNTWY4JrvrPgXUKBx9gq1DMNM924r7TwFfJdu3NxPGT' \
-H 'accept: application/json'
/**
* This configuration file defines a deployment scenario for use with the "rush deploy" command.
* The scenario files are located under the "common/config/deploy-scenarios" folder.
* For full documentation, please see https://rushjs.io
*/
{
"$schema": "https://developer.microsoft.com/json-schemas/rush/v5/deploy-scenario.schema.json",
/**
* Specify the name of the Rush project to be deployed. The name must be a full package name
@arikon
arikon / 1-vacancy.md
Last active February 4, 2017 16:57
Вакансия в команду разработки портальной библиотеки блоков Яндекса

Привет!

В портал Яндекса входит больше сотни сервисов. Часть из них достаточно известны — Главная страница (Морда), Поиск, Почта, Карты, Маркет и т.д., но большая часть менее известны или даже практически незаметны. Среди них различные промо-проекты (например, Яндекс.Браузер) и спец-проекты (например, Зимние Игры — 2014).

Для того, чтобы ускорить и упростить создание и поддержку такого количества сервисов, мы сделали, а теперь развиваем и поддерживаем портальную библиотеку общих блоков — Лего.

Развитием портальной библиотеки и инфраструктуры вокруг неё занимается отдельная команда. В команде Лего работает около 20 человек (разработчиков, тестировщиков, технических писателей и менеджеров). Кроме этого, в портальную библиотеку контрибьютят разработчики сервисов Яндекса.

Среди основных задач команды Лего можно выделить следующие:

@arikon
arikon / swagger.json
Created May 18, 2016 13:39
swagger.json
{
"swagger": "2.0",
"basePath": "/api/v1.0",
"info": {
"title": "Sandbox JSON API",
"description": "Описание JSON API для взаимодействия с Sandbox (на данный момент находится в разработке)",
"contact": {
"email": "sandbox@yandex-team.ru"
},
"version": "1.0"
@arikon
arikon / q-progress.js
Created November 24, 2013 13:44
deffered.notify() / promise.progress() test
var Q = require('q');
Q.thenResolve()
.then(function() {
var d = Q.defer(),
step = 0;
var interval = setInterval(function() {
d.notify('step ' + ++step);
}, 1000);
@arikon
arikon / bundle.deps.js
Created November 19, 2012 10:58
depsByTech
exports.deps = [
// regular deps
];
exports.depsByTechs = {
js: {
// deps for js tech of current block
bemhtml: [
// bemhtml deps for js tech of current block
]
@arikon
arikon / stylus.js
Created September 21, 2012 23:00
Stylus plugin to resolve relative paths to images on @import
#!/usr/bin/env node
var S = require('stylus'),
FS = require('fs'),
URL = require('url'),
PATH = require('path');
var path = PATH.resolve('bundle.styl');
S(FS.readFileSync(path, 'utf8'))
.set('filename', path)
exports.match = function(file) {
if (isSvn(file)) return;
if (/blocks.*?/.test(file.self)) {
file.match = matchBlocksLevel;
return file.match(file);
}
};
function isSvn(file) {
return (file.self == '.svn' || /\/\.svn\//.test(file.path));
@arikon
arikon / cmd.js
Created September 23, 2011 11:50
require('../lib/coa').Cmd()
.name('cmd')
.title('Command test')
.helpful()
.cmd()
.name('command')
.title('Do command work')
.helpful()
.act(function() {
console.log('Doing command work...');