Skip to content

Instantly share code, notes, and snippets.

View dhbrojas's full-sized avatar
🇨🇳
Code LLMs @ Zhipu.AI, THU

Diego Rojas (罗杰斯) dhbrojas

🇨🇳
Code LLMs @ Zhipu.AI, THU
  • Tsinghua University
  • Beijing, China
  • 19:51 (UTC +08:00)
  • X @dhbrojas
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dhbrojas
dhbrojas / document.rs
Created December 8, 2023 04:06
Under-Tested Implementation of Applying LSP Content Changes to Ropey and Tree Sitter
use ropey::{Rope, RopeSlice};
use serde::{Deserialize, Serialize};
use std::fmt;
use thiserror::Error;
use tower_lsp::lsp_types::{Position, TextDocumentContentChangeEvent};
use tree_sitter::{InputEdit, Parser, Point, Tree};
pub struct TextDocument {
pub rope: Rope,
pub tree: Option<Tree>,
@dhbrojas
dhbrojas / INSTALL.sh
Last active July 27, 2022 00:09
Ubuntu Install Script
#!/bin/bash
mkdir -p $HOME/diego-install
cd $HOME/diego-install
# Installing utilities
echo "--------------------------------------------------------------------"
echo "> Updating apt"
sudo apt update
echo "--------------------------------------------------------------------"

Neptune.ai Introduction with RLlib and Tune

Hyperparameter tuning and training optimisation using RLlib, Tune and Neptune.

Description

This scripts implements a basic Logger for Tune in order to send training data to neptune.ai

Usage

Ray - Distributed training in Python

This Gist serves the sole purpose of condensing the Ray documentation in regards to Ray Core, Tune and RLlib. It was originally written for my personal use: as some quick notes to skim through. Moreover, the code is heavily if not entirely based on the Documentation snippets which can be found here

Ray Core

Description