Skip to content

Instantly share code, notes, and snippets.

@MichelML
MichelML / LLM.md
Last active June 5, 2023 02:44 — forked from rain-1/LLM.md
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

import datamol as dm
# test structures taken from
# https://www.rdkit.org/docs/GettingStartedInPython.html#substructure-searching
test_smiles = "c1ccccc1O"
test_statement_substruct = "ccO"
_match_type_checkers = {
"WR": lambda matches_count, match_n_val, match_n_second_val: match_n_val
<= matches_count
@MichelML
MichelML / webpack-shell-plugin.js
Created June 5, 2018 13:51 — forked from michaeljota/webpack-shell-plugin.js
A webpack shell plugin to hock command after and before the build. All credits to original author: Yair Tavor. http://stackoverflow.com/a/35337516. I just classed it.
'use strict';
const exec = require('child_process').exec;
function puts(error, stdout, stderr) {
console.log(stdout);
}
class WebpackShellPlugin {
constructor(options) {
@MichelML
MichelML / .gitignore
Created February 2, 2016 20:54 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@MichelML
MichelML / angular-jqlite.adoc
Created December 11, 2015 17:34 — forked from esfand/angular-jqlite.adoc
Angular jqLite

Angular jqLite

jQuery and Angular

Angular doesn’t depend on jQuery. In fact, the Angular source contains an embedded lightweight alternative: jqLite. Still, when Angular detects the presence of a jQuery version in your page, it uses that full jQuery implementation in lieu of jqLite. One direct way in which this manifests itself is with Angular’s element abstraction. For example, in a directive you get access to the element that the directive applies to: