Skip to content

Instantly share code, notes, and snippets.

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

Diego ROJAS rojas-diego

🇨🇳
Code LLMs @ Zhipu.AI, THU
  • Tsinghua University
  • Beijing, China
  • 09:10 (UTC +08:00)
  • X @diegorojasfr
View GitHub Profile
@rojas-diego
rojas-diego / 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>,
@rojas-diego
rojas-diego / 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