johnpaulbin commited on
Commit
eb4b888
·
1 Parent(s): 7f0c662

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -2,12 +2,10 @@ import gradio as gr
2
  import os, gc, copy, torch, re
3
  from datetime import datetime
4
  from huggingface_hub import hf_hub_download
5
- from pynvml import *
6
- nvmlInit()
7
- gpu_h = nvmlDeviceGetHandleByIndex(0)
8
  ctx_limit = 512
9
  title = "RWKV-4-World-0.4B-v1-20230529-ctx4096"
10
- os.environ["RWKV_JIT_ON"] = '0'
11
  os.environ["RWKV_CUDA_ON"] = '0' # if '1' then use CUDA kernel for seq mode (much faster)
12
 
13
  from rwkv.model import RWKV
 
2
  import os, gc, copy, torch, re
3
  from datetime import datetime
4
  from huggingface_hub import hf_hub_download
5
+
 
 
6
  ctx_limit = 512
7
  title = "RWKV-4-World-0.4B-v1-20230529-ctx4096"
8
+ os.environ["RWKV_JIT_ON"] = '1'
9
  os.environ["RWKV_CUDA_ON"] = '0' # if '1' then use CUDA kernel for seq mode (much faster)
10
 
11
  from rwkv.model import RWKV