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 100
Browse files- adapter_config.json +5 -5
- adapter_model.safetensors +1 -1
- trainer_log.jsonl +10 -0
- training_args.bin +2 -2
adapter_config.json
CHANGED
|
@@ -33,13 +33,13 @@
|
|
| 33 |
"rank_pattern": {},
|
| 34 |
"revision": null,
|
| 35 |
"target_modules": [
|
| 36 |
-
"v_proj",
|
| 37 |
-
"gate_proj",
|
| 38 |
"up_proj",
|
| 39 |
-
"q_proj",
|
| 40 |
-
"k_proj",
|
| 41 |
"down_proj",
|
| 42 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
],
|
| 44 |
"target_parameters": null,
|
| 45 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 33 |
"rank_pattern": {},
|
| 34 |
"revision": null,
|
| 35 |
"target_modules": [
|
|
|
|
|
|
|
| 36 |
"up_proj",
|
|
|
|
|
|
|
| 37 |
"down_proj",
|
| 38 |
+
"k_proj",
|
| 39 |
+
"v_proj",
|
| 40 |
+
"gate_proj",
|
| 41 |
+
"o_proj",
|
| 42 |
+
"q_proj"
|
| 43 |
],
|
| 44 |
"target_parameters": null,
|
| 45 |
"task_type": "CAUSAL_LM",
|
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:f4db60c234ae2371f0f7ed04c54596eaa89c0e9a9d98f21da4315b8713ac7df8
|
| 3 |
size 140815952
|
trainer_log.jsonl
CHANGED
|
@@ -3,3 +3,13 @@
|
|
| 3 |
{"current_steps": 30, "total_steps": 1926, "loss": 0.838736629486084, "lr": 1.5025906735751296e-05, "epoch": 0.04678362573099415, "percentage": 1.56, "elapsed_time": "0:01:18", "remaining_time": "1:22:52"}
|
| 4 |
{"current_steps": 40, "total_steps": 1926, "loss": 0.6954585552215576, "lr": 2.0207253886010365e-05, "epoch": 0.06237816764132553, "percentage": 2.08, "elapsed_time": "0:01:43", "remaining_time": "1:21:35"}
|
| 5 |
{"current_steps": 50, "total_steps": 1926, "loss": 0.7875439167022705, "lr": 2.538860103626943e-05, "epoch": 0.07797270955165692, "percentage": 2.6, "elapsed_time": "0:02:10", "remaining_time": "1:21:34"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
{"current_steps": 30, "total_steps": 1926, "loss": 0.838736629486084, "lr": 1.5025906735751296e-05, "epoch": 0.04678362573099415, "percentage": 1.56, "elapsed_time": "0:01:18", "remaining_time": "1:22:52"}
|
| 4 |
{"current_steps": 40, "total_steps": 1926, "loss": 0.6954585552215576, "lr": 2.0207253886010365e-05, "epoch": 0.06237816764132553, "percentage": 2.08, "elapsed_time": "0:01:43", "remaining_time": "1:21:35"}
|
| 5 |
{"current_steps": 50, "total_steps": 1926, "loss": 0.7875439167022705, "lr": 2.538860103626943e-05, "epoch": 0.07797270955165692, "percentage": 2.6, "elapsed_time": "0:02:10", "remaining_time": "1:21:34"}
|
| 6 |
+
{"current_steps": 60, "total_steps": 1926, "loss": 0.677156639099121, "lr": 3.05699481865285e-05, "epoch": 0.0935672514619883, "percentage": 3.12, "elapsed_time": "0:02:40", "remaining_time": "1:23:11"}
|
| 7 |
+
{"current_steps": 70, "total_steps": 1926, "loss": 0.7149993896484375, "lr": 3.575129533678757e-05, "epoch": 0.10916179337231968, "percentage": 3.63, "elapsed_time": "0:03:06", "remaining_time": "1:22:22"}
|
| 8 |
+
{"current_steps": 80, "total_steps": 1926, "loss": 0.7847057819366455, "lr": 4.093264248704664e-05, "epoch": 0.12475633528265107, "percentage": 4.15, "elapsed_time": "0:03:38", "remaining_time": "1:23:53"}
|
| 9 |
+
{"current_steps": 90, "total_steps": 1926, "loss": 0.7350324630737305, "lr": 4.61139896373057e-05, "epoch": 0.14035087719298245, "percentage": 4.67, "elapsed_time": "0:04:06", "remaining_time": "1:23:45"}
|
| 10 |
+
{"current_steps": 60, "total_steps": 1926, "loss": 0.6752982616424561, "lr": 4.663212435233161e-06, "epoch": 0.0935672514619883, "percentage": 3.12, "elapsed_time": "0:00:28", "remaining_time": "0:14:46"}
|
| 11 |
+
{"current_steps": 70, "total_steps": 1926, "loss": 0.7158531665802002, "lr": 9.84455958549223e-06, "epoch": 0.10916179337231968, "percentage": 3.63, "elapsed_time": "0:00:52", "remaining_time": "0:23:01"}
|
| 12 |
+
{"current_steps": 80, "total_steps": 1926, "loss": 0.7874385833740234, "lr": 1.5025906735751296e-05, "epoch": 0.12475633528265107, "percentage": 4.15, "elapsed_time": "0:01:22", "remaining_time": "0:31:38"}
|
| 13 |
+
{"current_steps": 90, "total_steps": 1926, "loss": 0.7358914852142334, "lr": 2.0207253886010365e-05, "epoch": 0.14035087719298245, "percentage": 4.67, "elapsed_time": "0:01:49", "remaining_time": "0:37:16"}
|
| 14 |
+
{"current_steps": 100, "total_steps": 1926, "loss": 0.675134801864624, "lr": 2.538860103626943e-05, "epoch": 0.15594541910331383, "percentage": 5.19, "elapsed_time": "0:02:21", "remaining_time": "0:43:03"}
|
| 15 |
+
{"current_steps": 100, "total_steps": 1926, "eval_loss": 0.601254403591156, "epoch": 0.15594541910331383, "percentage": 5.19, "elapsed_time": "0:03:00", "remaining_time": "0:54:55"}
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:85c655ac7a2e6dfc2b70fed966996e7c35cb955ac1831012828ab7384f83bbbc
|
| 3 |
+
size 6097
|