Skip to content

Instantly share code, notes, and snippets.

View skliarpawlo's full-sized avatar

Pavlo Skliar skliarpawlo

  • Tubular
  • Ukraine, Kiev
View GitHub Profile
;;
;; Matcher should recognize and destruct URL by:
;; host: domain
;; path: parts, splitted with "/"
;; queryparam: name/value pairs of query
;; (see examples below)
;;
;; Each string that is started from "?" is a "bind"
;; (recognize matcher) should return nil or seq of binds
;;
@skliarpawlo
skliarpawlo / huggingface_example.py
Last active May 6, 2023 17:31
Ray HuggingfaceTrainer problem
from datasets import load_dataset
import transformers
from transformers import AutoConfig, AutoModelForCausalLM, AutoTokenizer
import ray
from ray import tune, air
from ray.train.huggingface import HuggingFaceTrainer
from ray.air.config import ScalingConfig
import os