Spaces:
Build error
Build error
Joeng 2004 commited on
Commit ·
db36c54
1
Parent(s): d43a93f
Initial commit with WasmEdge setup
Browse files- app.py +5 -0
- requirements.txt +5 -0
app.py
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
|
| 3 |
+
command = "wasmedge --dir .:. --nn-preload default:GGML:AUTO:Meta-Llama-3.1-8B-Instruct-Q5_K_M.gguf llama-simple.wasm --n-predict 128 --log-enable --prompt 'Robert Oppenheimer's most important achievement is '"
|
| 4 |
+
os.system(command)
|
| 5 |
+
|
requirements.txt
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
wasmedge
|
| 2 |
+
transformers
|
| 3 |
+
torch
|
| 4 |
+
numpy
|
| 5 |
+
|