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
Download scripts/verify_env.py from arfeen2006/Fine-tuning-LLM-using-QLoRA: direct link, hf CLI and curl.
- Browser
- Download file 932 Bytes
-
https://huggingface.co/arfeen2006/Fine-tuning-LLM-using-QLoRA/resolve/main/scripts/verify_env.py
- Command line
-
hf download hf://arfeen2006/Fine-tuning-LLM-using-QLoRA/scripts/verify_env.py
-
curl -L -o verify_env.py https://huggingface.co/arfeen2006/Fine-tuning-LLM-using-QLoRA/resolve/main/scripts/verify_env.py
932 Bytes
| """ | |
| 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() | |