Skip to content

Instantly share code, notes, and snippets.

View kangzhiheng's full-sized avatar
🎯
Focusing

Twinkle Refrain kangzhiheng

🎯
Focusing
View GitHub Profile
@yuhanz
yuhanz / run-bert-tensorflow2.py
Last active March 13, 2023 14:11
To run bert with tensorflow 2.0
pip install bert-for-tf2
pip install bert-tokenizer
pip install tensorflow-hub
pip install bert-tensorflow
pip install sentencepiece
import tensorflow_hub as hub
import tensorflow as tf
import bert
@jakob
jakob / build-clangd.sh
Last active September 1, 2022 22:19
How To Build clangd
#!/bin/bash
set -e
mkdir clangd
cd clangd/
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
cd llvm/tools
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang