Skip to content

Instantly share code, notes, and snippets.

View conradlz's full-sized avatar

Conrad Lippert-Zajaczkowski conradlz

  • Chicago, Illinois
View GitHub Profile
@conradlz
conradlz / handler.py
Created June 25, 2023 16:06
HuggingFace Inference API Handler for RWKV-4-World-7B-v1-OnlyForTest_84%_trained-20230618-ctx4096.pth
########################################################################################################
# The RWKV Language Model - https://github.com/BlinkDL/RWKV-LM
########################################################################################################
# import os
# import copy
import os, gc
# os.environ["CUDA_VISIBLE_DEVICES"] = "0,1,2,3"
os.environ["RWKV_JIT_ON"] = '1'
os.environ["RWKV_CUDA_ON"] = '1' # if '1' then use CUDA kernel for seq mode (much faster)
@conradlz
conradlz / recommended addons.txt
Last active August 25, 2017 17:47
My Recommended Ember Addons