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 350
Browse files- adapter_model.safetensors +1 -1
- trainer_log.jsonl +5 -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:f57f85d2fd8a082c4a8ca8c8533a69e69ff37dce5ebbef95b937a05a63cb4b49
|
| 3 |
size 140815952
|
trainer_log.jsonl
CHANGED
|
@@ -35,3 +35,8 @@
|
|
| 35 |
{"current_steps": 290, "total_steps": 1926, "loss": 0.6950376987457275, "lr": 9.982625728119653e-05, "epoch": 0.4522417153996101, "percentage": 15.06, "elapsed_time": "0:12:39", "remaining_time": "1:11:26"}
|
| 36 |
{"current_steps": 300, "total_steps": 1926, "loss": 0.6416468143463134, "lr": 9.97425779918751e-05, "epoch": 0.4678362573099415, "percentage": 15.58, "elapsed_time": "0:13:06", "remaining_time": "1:11:02"}
|
| 37 |
{"current_steps": 300, "total_steps": 1926, "eval_loss": 0.5593885183334351, "epoch": 0.4678362573099415, "percentage": 15.58, "elapsed_time": "0:13:44", "remaining_time": "1:14:28"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
{"current_steps": 290, "total_steps": 1926, "loss": 0.6950376987457275, "lr": 9.982625728119653e-05, "epoch": 0.4522417153996101, "percentage": 15.06, "elapsed_time": "0:12:39", "remaining_time": "1:11:26"}
|
| 36 |
{"current_steps": 300, "total_steps": 1926, "loss": 0.6416468143463134, "lr": 9.97425779918751e-05, "epoch": 0.4678362573099415, "percentage": 15.58, "elapsed_time": "0:13:06", "remaining_time": "1:11:02"}
|
| 37 |
{"current_steps": 300, "total_steps": 1926, "eval_loss": 0.5593885183334351, "epoch": 0.4678362573099415, "percentage": 15.58, "elapsed_time": "0:13:44", "remaining_time": "1:14:28"}
|
| 38 |
+
{"current_steps": 310, "total_steps": 1926, "loss": 0.5587766170501709, "lr": 9.964255241945638e-05, "epoch": 0.4834307992202729, "percentage": 16.1, "elapsed_time": "0:14:16", "remaining_time": "1:14:23"}
|
| 39 |
+
{"current_steps": 320, "total_steps": 1926, "loss": 0.6536989212036133, "lr": 9.952621343409685e-05, "epoch": 0.49902534113060426, "percentage": 16.61, "elapsed_time": "0:14:42", "remaining_time": "1:13:51"}
|
| 40 |
+
{"current_steps": 330, "total_steps": 1926, "loss": 0.6228131294250489, "lr": 9.93935992668265e-05, "epoch": 0.5146198830409356, "percentage": 17.13, "elapsed_time": "0:15:09", "remaining_time": "1:13:19"}
|
| 41 |
+
{"current_steps": 340, "total_steps": 1926, "loss": 0.6134224891662597, "lr": 9.924475349698536e-05, "epoch": 0.530214424951267, "percentage": 17.65, "elapsed_time": "0:15:37", "remaining_time": "1:12:55"}
|
| 42 |
+
{"current_steps": 350, "total_steps": 1926, "loss": 0.6202692031860352, "lr": 9.907972503790263e-05, "epoch": 0.5458089668615984, "percentage": 18.17, "elapsed_time": "0:16:02", "remaining_time": "1:12:13"}
|