Skip to content

Instantly share code, notes, and snippets.

View xrsrke's full-sized avatar
🎯
focus

XλRI-U5 xrsrke

🎯
focus
View GitHub Profile
02/23/2024 11:12:35 [INFO|DP=3|PP=0|TP=0]: requesting new stream from self.s3_path=s3://huggingface-llm-datasets/synthetic-data/tokenization_per_source_v1/jupyter/standard/000_jupyter.ds at index=1051776
02/23/2024 11:12:35 [INFO|DP=2|PP=0|TP=0]: requesting new stream from self.s3_path=s3://huggingface-llm-datasets/synthetic-data/tokenization_per_source_v1/amt-web/standard/000_amt-web.ds at index=5
02/23/2024 11:12:35 [INFO|DP=0|PP=0|TP=0]: requesting new stream from self.s3_path=s3://huggingface-llm-datasets/synthetic-data/tokenization_per_source_v1/textbooks/standard/000_textbooks.ds at index=0
02/23/2024 11:12:35 [INFO|DP=1|PP=0|TP=0]: requesting new stream from self.s3_path=s3://huggingface-llm-datasets/synthetic-data/tokenization_per_source_v1/jupyter/standard/000_jupyter.ds at index=3
02/23/2024 11:12:35 [INFO|DP=2|PP=0|TP=0]: requesting new stream from self.s3_path=s3://huggingface-llm-datasets/synthetic-data/tokenization_per_source_v1/textbooks/standard/000_textbooks.ds at index=40
02/23/2024 11:12:35
@xrsrke
xrsrke / gist:1cd36cc42e7dcf50a83bd60557459bca
Last active January 4, 2024 12:39
merged checkpoint's inference
from transformers import GPTBigCodeForCausalLM, GPTBigCodeConfig
from transformers import AutoTokenizer
from pathlib import Path
import json
import torch
import random
import numpy as np
(venv) (base) ➜ prodgpt git:(train) ✗ python3 prodgpt/test_flow.py step-functions create
Metaflow 2.8.2 executing HelloFlow for user:education
Validating your flow...
The graph looks good!
Running pylint...
Pylint is happy!
Deploying HelloFlow to AWS Step Functions...
Internal error
Traceback (most recent call last):
File "/Users/education/opt/anaconda3/lib/python3.9/site-packages/urllib3/connection.py", line 174, in _new_conn
https://github.com/davidsonfellipe/awesome-wpo
https://github.com/bayandin/awesome-awesomeness
@xrsrke
xrsrke / minimal-analytics-snippet.js
Created December 14, 2018 23:26 — forked from DavidKuennen/minimal-analytics-snippet.js
Minimal Analytics Snippet
(function (history, trackingId, options) {
const getParameterByName = (paramName) => {
var searchString = window.location.search.substring(1),
i, val, params = searchString.split("&");
for (i=0;i<params.length;i++) {
val = params[i].split("=");
if (val[0] == paramName) {
return val[1] || undefined;
}
}
@xrsrke
xrsrke / array_merge_recursive_distinct.php
Created November 29, 2018 07:03 — forked from KaiCMueller/array_merge_recursive_distinct.php
Merging two multi dimensional arrays, overwriting existing values
<?php
/**
* array_merge_recursive does indeed merge arrays, but it converts values with duplicate
* keys to arrays rather than overwriting the value in the first array with the duplicate
* value in the second array, as array_merge does. I.e., with array_merge_recursive,
* this happens (documented behavior):
*
* array_merge_recursive(array('key' => 'org value'), array('key' => 'new value'));
* => array('key' => array('org value', 'new value'));
function array_keys_multi(array $array)
{
$keys = array();
foreach ($array as $key => $value) {
$keys[] = $key;
if (is_array($value)) {
$keys = array_merge($keys, array_keys_multi($value));
}
# Install
curl https://install.meteor.com/ | sh
meteor create myApp
cd myApp
meteor remove insecure
meteor remove autopublish