Narsil's picture
Narsil HF staff
Update app.py
14d8a56
raw
history blame contribute delete
412 Bytes
import gradio as gr
import platform
import torch
from xformers import ops
q = torch.zeros((2, 2, 2, 2)).cuda()
k = torch.zeros((2, 2, 2, 2)).cuda()
v = torch.zeros((2, 2, 2, 2)).cuda()
out = ops.memory_efficient_attention(q, k, v)
print(out)
print(platform.libc_ver())
def greet(name):
return "Hello " + name + "!!"
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()
# dummy