Instructions to use remiai3/RemiAI_Framework 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 remiai3/RemiAI_Framework 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 remiai3/RemiAI_Framework # Run inference directly in the terminal: llama cli -hf remiai3/RemiAI_Framework
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf remiai3/RemiAI_Framework # Run inference directly in the terminal: llama cli -hf remiai3/RemiAI_Framework
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf remiai3/RemiAI_Framework # Run inference directly in the terminal: ./llama-cli -hf remiai3/RemiAI_Framework
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf remiai3/RemiAI_Framework # Run inference directly in the terminal: ./build/bin/llama-cli -hf remiai3/RemiAI_Framework
Use Docker
docker model run hf.co/remiai3/RemiAI_Framework
- LM Studio
- Jan
- vLLM
How to use remiai3/RemiAI_Framework with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "remiai3/RemiAI_Framework" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "remiai3/RemiAI_Framework", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/remiai3/RemiAI_Framework
- Ollama
How to use remiai3/RemiAI_Framework with Ollama:
ollama run hf.co/remiai3/RemiAI_Framework
- Unsloth Studio
How to use remiai3/RemiAI_Framework with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for remiai3/RemiAI_Framework to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for remiai3/RemiAI_Framework to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for remiai3/RemiAI_Framework to start chatting
- Docker Model Runner
How to use remiai3/RemiAI_Framework with Docker Model Runner:
docker model run hf.co/remiai3/RemiAI_Framework
- Lemonade
How to use remiai3/RemiAI_Framework with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull remiai3/RemiAI_Framework
Run and chat with the model
lemonade run user.RemiAI_Framework-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
| import sys | |
| import os | |
| import multiprocessing | |
| from flask import Flask, request, Response | |
| from waitress import serve | |
| import json | |
| import traceback | |
| # --- 1. SETUP LOGGING --- | |
| def log(msg): | |
| print(f"[ENGINE] {msg}", flush=True) | |
| # --- 2. PATH SETUP --- | |
| if getattr(sys, 'frozen', False): | |
| BASE_DIR = os.path.dirname(sys.executable) | |
| else: | |
| BASE_DIR = os.path.dirname(os.path.abspath(__file__)) | |
| MODEL_PATH = os.path.join(BASE_DIR, "model.gguf") | |
| log(f"Base Directory: {BASE_DIR}") | |
| app = Flask(__name__) | |
| # --- 3. THE "MONKEY PATCH" (CRITICAL FIX) --- | |
| # We intercept the library's attempt to set up logging and stop it. | |
| try: | |
| import llama_cpp | |
| # Create a dummy function that does NOTHING | |
| def dummy_log_set(callback, user_data): | |
| return | |
| # Overwrite the library's internal function with our dummy | |
| # Now, when Llama() runs, it CALLS this instead of the C function. | |
| llama_cpp.llama_log_set = dummy_log_set | |
| log("Successfully patched Llama logging.") | |
| except Exception as e: | |
| log(f"Patch warning: {e}") | |
| # --- 4. LOAD MODEL --- | |
| llm = None | |
| try: | |
| from llama_cpp import Llama | |
| total_cores = multiprocessing.cpu_count() | |
| safe_threads = max(1, int(total_cores * 0.5)) | |
| if not os.path.exists(MODEL_PATH): | |
| log("CRITICAL ERROR: model.gguf is missing!") | |
| else: | |
| log("Loading Model...") | |
| llm = Llama( | |
| model_path=MODEL_PATH, | |
| n_ctx=4096, | |
| n_threads=safe_threads, | |
| n_gpu_layers=0, | |
| verbose=False, | |
| chat_format="gemma", | |
| use_mmap=False | |
| ) | |
| log("Model Loaded Successfully!") | |
| except Exception as e: | |
| log(f"CRITICAL EXCEPTION during load: {e}") | |
| log(traceback.format_exc()) | |
| def health_check(): | |
| if llm: return "OK", 200 | |
| return "MODEL_FAILED", 500 | |
| def chat_stream(): | |
| if not llm: | |
| return Response("data: " + json.dumps({'chunk': "Error: Brain failed initialization."}) + "\n\n", mimetype='text/event-stream') | |
| data = request.json | |
| messages = [{"role": "user", "content": data.get('message', '')}] | |
| def generate(): | |
| try: | |
| stream = llm.create_chat_completion(messages=messages, max_tokens=1000, stream=True) | |
| for chunk in stream: | |
| if 'content' in chunk['choices'][0]['delta']: | |
| yield f"data: {json.dumps({'chunk': chunk['choices'][0]['delta']['content']})}\n\n" | |
| except Exception as e: | |
| log(f"Gen Error: {e}") | |
| yield f"data: {json.dumps({'chunk': ' Error.'})}\n\n" | |
| return Response(stream_with_context(generate()), mimetype='text/event-stream') | |
| if __name__ == '__main__': | |
| log("Starting Waitress Server on Port 5000...") | |
| try: | |
| serve(app, host='127.0.0.1', port=5000, threads=6) | |
| except Exception as e: | |
| log(f"Server Crash: {e}") |