Instructions to use mo22zy/LLM-fineTune-LLaMAFactory-UnSloth with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use mo22zy/LLM-fineTune-LLaMAFactory-UnSloth with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen2.5-0.5B-Instruct") model = PeftModel.from_pretrained(base_model, "mo22zy/LLM-fineTune-LLaMAFactory-UnSloth") - Transformers
How to use mo22zy/LLM-fineTune-LLaMAFactory-UnSloth with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mo22zy/LLM-fineTune-LLaMAFactory-UnSloth") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mo22zy/LLM-fineTune-LLaMAFactory-UnSloth", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use mo22zy/LLM-fineTune-LLaMAFactory-UnSloth with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mo22zy/LLM-fineTune-LLaMAFactory-UnSloth" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mo22zy/LLM-fineTune-LLaMAFactory-UnSloth", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/mo22zy/LLM-fineTune-LLaMAFactory-UnSloth
- SGLang
How to use mo22zy/LLM-fineTune-LLaMAFactory-UnSloth with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "mo22zy/LLM-fineTune-LLaMAFactory-UnSloth" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mo22zy/LLM-fineTune-LLaMAFactory-UnSloth", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "mo22zy/LLM-fineTune-LLaMAFactory-UnSloth" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mo22zy/LLM-fineTune-LLaMAFactory-UnSloth", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use mo22zy/LLM-fineTune-LLaMAFactory-UnSloth with Docker Model Runner:
docker model run hf.co/mo22zy/LLM-fineTune-LLaMAFactory-UnSloth
Training in progress, step 1800
Browse files- adapter_model.safetensors +1 -1
- trainer_log.jsonl +6 -0
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 140815952
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:956801f61d43ba01b4b16850fa4335665a13dd24cde05673a17185b2765bcc60
|
| 3 |
size 140815952
|
trainer_log.jsonl
CHANGED
|
@@ -199,3 +199,9 @@
|
|
| 199 |
{"current_steps": 1730, "total_steps": 1926, "loss": 0.29213476181030273, "lr": 7.434303228366428e-05, "epoch": 2.69551656920078, "percentage": 89.82, "elapsed_time": "0:47:01", "remaining_time": "0:05:19"}
|
| 200 |
{"current_steps": 1740, "total_steps": 1926, "loss": 0.3225573539733887, "lr": 7.35473513275895e-05, "epoch": 2.7111111111111112, "percentage": 90.34, "elapsed_time": "0:47:28", "remaining_time": "0:05:04"}
|
| 201 |
{"current_steps": 1750, "total_steps": 1926, "loss": 0.3194139003753662, "lr": 7.274393229909202e-05, "epoch": 2.7267056530214426, "percentage": 90.86, "elapsed_time": "0:48:00", "remaining_time": "0:04:49"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 199 |
{"current_steps": 1730, "total_steps": 1926, "loss": 0.29213476181030273, "lr": 7.434303228366428e-05, "epoch": 2.69551656920078, "percentage": 89.82, "elapsed_time": "0:47:01", "remaining_time": "0:05:19"}
|
| 200 |
{"current_steps": 1740, "total_steps": 1926, "loss": 0.3225573539733887, "lr": 7.35473513275895e-05, "epoch": 2.7111111111111112, "percentage": 90.34, "elapsed_time": "0:47:28", "remaining_time": "0:05:04"}
|
| 201 |
{"current_steps": 1750, "total_steps": 1926, "loss": 0.3194139003753662, "lr": 7.274393229909202e-05, "epoch": 2.7267056530214426, "percentage": 90.86, "elapsed_time": "0:48:00", "remaining_time": "0:04:49"}
|
| 202 |
+
{"current_steps": 1760, "total_steps": 1926, "loss": 0.35173568725585935, "lr": 7.193303921574826e-05, "epoch": 2.742300194931774, "percentage": 91.38, "elapsed_time": "0:48:39", "remaining_time": "0:04:35"}
|
| 203 |
+
{"current_steps": 1770, "total_steps": 1926, "loss": 0.35942902565002444, "lr": 7.111493855124005e-05, "epoch": 2.7578947368421054, "percentage": 91.9, "elapsed_time": "0:49:11", "remaining_time": "0:04:20"}
|
| 204 |
+
{"current_steps": 1780, "total_steps": 1926, "loss": 0.3936769485473633, "lr": 7.028989914778676e-05, "epoch": 2.773489278752437, "percentage": 92.42, "elapsed_time": "0:49:40", "remaining_time": "0:04:04"}
|
| 205 |
+
{"current_steps": 1790, "total_steps": 1926, "loss": 0.28824803829193113, "lr": 6.945819212779902e-05, "epoch": 2.789083820662768, "percentage": 92.94, "elapsed_time": "0:50:10", "remaining_time": "0:03:48"}
|
| 206 |
+
{"current_steps": 1800, "total_steps": 1926, "loss": 0.3200947046279907, "lr": 6.862009080478309e-05, "epoch": 2.8046783625730995, "percentage": 93.46, "elapsed_time": "0:50:41", "remaining_time": "0:03:32"}
|
| 207 |
+
{"current_steps": 1800, "total_steps": 1926, "eval_loss": 0.5122932195663452, "epoch": 2.8046783625730995, "percentage": 93.46, "elapsed_time": "0:51:24", "remaining_time": "0:03:35"}
|