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
Download dashboard.py from omdbusiness/amal: direct link, hf CLI and curl.
- Browser
- Download file 1.9 kB
-
https://huggingface.co/omdbusiness/amal/resolve/main/dashboard.py
- Command line
-
hf download hf://omdbusiness/amal/dashboard.py
-
curl -L -o dashboard.py https://huggingface.co/omdbusiness/amal/resolve/main/dashboard.py
1.9 kB
| # dashboard.py | |
| from flask import Flask, render_template, jsonify | |
| from peer_discovery import discover_peers | |
| import threading | |
| import time | |
| from typing import List, Dict | |
| import logging | |
| app = Flask(__name__) | |
| app.logger.setLevel(logging.INFO) | |
| # تهيئة قائمة الأقران | |
| current_peers: Dict[str, List[Dict[str, str]]] = {"local": [], "external": []} | |
| def update_peers_loop() -> None: | |
| """حلقة تحديث قائمة الأقران بشكل دوري""" | |
| global current_peers | |
| while True: | |
| try: | |
| new_peers = discover_peers() | |
| current_peers = new_peers | |
| total_peers = len(new_peers["local"]) + len(new_peers["external"]) | |
| app.logger.info(f"تم تحديث قائمة الأقران: {total_peers} جهاز") | |
| except Exception as e: | |
| app.logger.error(f"خطأ في اكتشاف الأقران: {str(e)}") | |
| time.sleep(10) | |
| def dashboard() -> str: | |
| """عرض لوحة التحكم الرئيسية""" | |
| total_peers = len(current_peers["local"]) + len(current_peers["external"]) | |
| return render_template("dashboard.html", | |
| peers_count=total_peers, | |
| last_update=time.strftime("%Y-%m-%d %H:%M:%S")) | |
| def get_peers() -> dict: | |
| """واجهة API للحصول على قائمة الأقران""" | |
| total_peers = len(current_peers["local"]) + len(current_peers["external"]) | |
| return jsonify({ | |
| "peers": current_peers, | |
| "count": total_peers, | |
| "status": "success" | |
| }) | |
| def start_background_thread() -> None: | |
| """بدء خيط الخلفية لتحديث الأقران""" | |
| thread = threading.Thread(target=update_peers_loop) | |
| thread.daemon = True | |
| thread.start() | |
| if __name__ == "__main__": | |
| start_background_thread() | |
| app.run(host="0.0.0.0", port=7530, debug=False) | |