Instructions to use omdbusiness/amal with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use omdbusiness/amal with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf omdbusiness/amal:Q4_K_M # Run inference directly in the terminal: llama cli -hf omdbusiness/amal:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf omdbusiness/amal:Q4_K_M # Run inference directly in the terminal: llama cli -hf omdbusiness/amal:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf omdbusiness/amal:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf omdbusiness/amal:Q4_K_M
Use Docker
docker model run hf.co/omdbusiness/amal:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use omdbusiness/amal with Ollama:
ollama run hf.co/omdbusiness/amal:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use omdbusiness/amal with Docker Model Runner:
docker model run hf.co/omdbusiness/amal:Q4_K_M
- Lemonade
How to use omdbusiness/amal with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull omdbusiness/amal:Q4_K_M
Run and chat with the model
lemonade run user.amal-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ from distributed_executor import DistributedExecutor
|
|
| 11 |
from your_tasks import *
|
| 12 |
|
| 13 |
# ================= إعدادات الموديل =================
|
| 14 |
-
local_model_path = "./Mistral-7B-Instruct-v0.1"
|
| 15 |
offload_dir = "offload_dir"
|
| 16 |
history_path = "history.json"
|
| 17 |
|
|
@@ -104,13 +104,17 @@ def launch_gradio():
|
|
| 104 |
send = gr.Button("إرسال")
|
| 105 |
|
| 106 |
def respond(message, chat_history_display):
|
|
|
|
| 107 |
answer = chat_with_nora(message)
|
| 108 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
return "", chat_history_display
|
| 110 |
|
| 111 |
send.click(respond, [msg, chatbot], [msg, chatbot])
|
| 112 |
-
|
| 113 |
-
chat_history_display.append({"role": "assistant", "content": answer})
|
| 114 |
with gr.Tab("تشغيل المهام"):
|
| 115 |
task_dropdown = gr.Dropdown(list(tasks.keys()), label="اختر مهمة")
|
| 116 |
run_button = gr.Button("تشغيل")
|
|
@@ -122,7 +126,5 @@ def launch_gradio():
|
|
| 122 |
|
| 123 |
# ================= تشغيل الاثنين معًا =================
|
| 124 |
if __name__ == '__main__':
|
| 125 |
-
# تشغيل Gradio في Thread منفصل
|
| 126 |
threading.Thread(target=launch_gradio, daemon=True).start()
|
| 127 |
-
# تشغيل Flask على نفس الجهاز
|
| 128 |
app.run(host='0.0.0.0', port=5000, debug=True)
|
|
|
|
| 11 |
from your_tasks import *
|
| 12 |
|
| 13 |
# ================= إعدادات الموديل =================
|
| 14 |
+
local_model_path = "./Mistral-7B-Instruct-v0.1"
|
| 15 |
offload_dir = "offload_dir"
|
| 16 |
history_path = "history.json"
|
| 17 |
|
|
|
|
| 104 |
send = gr.Button("إرسال")
|
| 105 |
|
| 106 |
def respond(message, chat_history_display):
|
| 107 |
+
# أرسل السؤال إلى الموديل
|
| 108 |
answer = chat_with_nora(message)
|
| 109 |
+
|
| 110 |
+
# أضف الرسالة وردها إلى واجهة Gradio
|
| 111 |
+
chat_history_display.append({"role": "user", "content": message})
|
| 112 |
+
chat_history_display.append({"role": "assistant", "content": answer})
|
| 113 |
+
|
| 114 |
return "", chat_history_display
|
| 115 |
|
| 116 |
send.click(respond, [msg, chatbot], [msg, chatbot])
|
| 117 |
+
|
|
|
|
| 118 |
with gr.Tab("تشغيل المهام"):
|
| 119 |
task_dropdown = gr.Dropdown(list(tasks.keys()), label="اختر مهمة")
|
| 120 |
run_button = gr.Button("تشغيل")
|
|
|
|
| 126 |
|
| 127 |
# ================= تشغيل الاثنين معًا =================
|
| 128 |
if __name__ == '__main__':
|
|
|
|
| 129 |
threading.Thread(target=launch_gradio, daemon=True).start()
|
|
|
|
| 130 |
app.run(host='0.0.0.0', port=5000, debug=True)
|