Skip to content

Instantly share code, notes, and snippets.

View serjtroshin's full-sized avatar

Troshin Sergey serjtroshin

View GitHub Profile
@serjtroshin
serjtroshin / schedule_slurm.py
Last active May 8, 2024 14:06
Run at most N jobs - slurm
import subprocess
import sys
import time
# Configuration
max_jobs = 8 # Maximum number of concurrent jobs
job_submission_interval = 10 # Seconds between checks
user = "stroshi"
def submit_job(all_command_line_args):
@serjtroshin
serjtroshin / bigscience_tokenizer.ipynb
Last active January 25, 2025 15:07
Preliminary analysis of multilang tokenizer
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
This file has been truncated, but you can view the full file.
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# EM algorithm\n",
"## Mixture Gaussian Models\n",
"- We will implement an algorithm that will segmentate data from the superposition of gaussians\n",
"- Also we provide graphical representation of the process in 2D space\n",
@serjtroshin
serjtroshin / tfrecords.ipynb
Created January 6, 2018 21:17
from file to tensorflow
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#include <iostream>
using namespace std;
int main() {
// поиск в массиве
int ar[1000];
int k;
cin >> k;
for (int i = 0; i < k; i++) {
#include <exception>
#include <iostream>
#include <iterator>
#include <string>
#include <sstream>
#include <vector>
#include <memory>
//
// FLOYD ALGORITHM
//
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.