Instructions to use arfeen2006/Fine-tuning-LLM-using-QLoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use arfeen2006/Fine-tuning-LLM-using-QLoRA with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("arfeen2006/Fine-tuning-LLM-using-QLoRA") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - PEFT
How to use arfeen2006/Fine-tuning-LLM-using-QLoRA with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use arfeen2006/Fine-tuning-LLM-using-QLoRA with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "arfeen2006/Fine-tuning-LLM-using-QLoRA" --prompt "Once upon a time"
- Atomic Chat
File size: 932 Bytes
ee15dc4 a1ea677 ee15dc4 | 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 | """
Verifies local Python and Apple Silicon / MLX runtime environment.
"""
import platform
def check_env() -> bool:
"""Check and display local environment configuration.
Returns:
bool: True if environment inspection succeeded.
"""
print(f"Python Version: {platform.python_version()}")
print(f"OS: {platform.system()} ({platform.machine()})")
is_mac = platform.system() == "Darwin" and platform.machine() == "arm64"
if is_mac:
print("[+] Detected Apple Silicon (M-series). MLX engine supported.")
try:
import mlx.core as mx
print(f"[+] MLX installed successfully: {mx.__version__}")
except ImportError:
print("[!] MLX not yet installed. Run: pip install -r requirements-mac.txt")
else:
print("[i] Non-Mac or x86 system. HF/CUDA companion engine supported.")
return True
if __name__ == "__main__":
check_env()
|