How to use from
OpenClaw
Start the MLX server
# Install MLX LM:
uv tool install mlx-lm
# Start a local OpenAI-compatible server:
mlx_lm.server --model "justindal/llama3.1-8b-leetcoder"
Configure OpenClaw
# Install OpenClaw:
npm install -g openclaw@latest
# Register the local server and set it as the default model:
openclaw onboard --non-interactive --mode local \
  --auth-choice custom-api-key \
  --custom-base-url http://127.0.0.1:8080/v1 \
  --custom-model-id "justindal/llama3.1-8b-leetcoder" \
  --custom-provider-id mlx-lm \
  --custom-compatibility openai \
  --custom-text-input \
  --accept-risk \
  --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Quick Links

Model Information

Meta's meta-llama/Llama-3.1-8B-Instruct LoRA fine-tuned for LeetCode-style Python solution generation.

Use with Python

from mlx_lm import load, generate
model, tokenizer = load("justindal/llama3.1-8b-leetcoder")
prompt = "Given an integer array nums, return indices of two numbers that add up to target."
response = generate(model, tokenizer, prompt=prompt)
print(response)

Base Model

This model is a variant of meta-llama/Llama-3.1-8B-Instruct. Fine-tuned with mlx-lm version 0.31.2.

Downloads last month
28
Safetensors
Model size
8B params
Tensor type
BF16
·
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
Input a message to start chatting with justindal/llama3.1-8b-leetcoder.

Model tree for justindal/llama3.1-8b-leetcoder

Finetuned
(3139)
this model
Quantizations
1 model

Dataset used to train justindal/llama3.1-8b-leetcoder

Collection including justindal/llama3.1-8b-leetcoder