Instructions to use johanjomet/JJ_coders-AI 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 johanjomet/JJ_coders-AI 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 johanjomet/JJ_coders-AI:Q4_K_M # Run inference directly in the terminal: llama cli -hf johanjomet/JJ_coders-AI:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf johanjomet/JJ_coders-AI:Q4_K_M # Run inference directly in the terminal: llama cli -hf johanjomet/JJ_coders-AI: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 johanjomet/JJ_coders-AI:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf johanjomet/JJ_coders-AI:Q4_K_M
Use Docker
docker model run hf.co/johanjomet/JJ_coders-AI:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use johanjomet/JJ_coders-AI with Ollama:
ollama run hf.co/johanjomet/JJ_coders-AI:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use johanjomet/JJ_coders-AI with Docker Model Runner:
docker model run hf.co/johanjomet/JJ_coders-AI:Q4_K_M
- Lemonade
How to use johanjomet/JJ_coders-AI with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull johanjomet/JJ_coders-AI:Q4_K_M
Run and chat with the model
lemonade run user.JJ_coders-AI-Q4_K_M
List all available models
lemonade list
- Atomic Chat
File size: 1,149 Bytes
48f15bb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | import spaces
import gradio as gr
from huggingface_hub import hf_hub_download
from llama_cpp import Llama
# Download model from your Model Repository
model_path = hf_hub_download(
repo_id="johanjomet/JJ_coders-AI",
filename="gemma-2-2b-it.Q4_K_M.gguf"
)
# Load model
llm = Llama(
model_path=model_path,
n_ctx=2048,
n_threads=2
)
# ZeroGPU decorator
@spaces.GPU
def respond(message, history):
system_prompt = "You are JJ Coders AI, a specialized coding, reasoning, and AI assistant engineered by JJ Coders and founded by Johan Jomet."
prompt = f"<bos><start_of_turn>user\n{system_prompt}\n\n"
for user_msg, bot_msg in history:
prompt += f"{user_msg}<end_of_turn>\n<start_of_turn>model\n{bot_msg}<end_of_turn>\n<start_of_turn>user\n"
prompt += f"{message}<end_of_turn>\n<start_of_turn>model\n"
output = llm(prompt, max_tokens=256, stop=["<end_of_turn>"])
return output["choices"][0]["text"].strip()
# Launch Gradio Chat UI
demo = gr.ChatInterface(
fn=respond,
title="JJ Coders AI (Gemma 2)",
description="Interactive Web Chat for JJ Coders Gemma 2 AI"
)
demo.launch() |