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 1250
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:05abc286a4dd1d4fb2876de4f28ae373d69633976b4ce84222c7ab0bbb3b009f
|
| 3 |
size 140815952
|
trainer_log.jsonl
CHANGED
|
@@ -139,3 +139,8 @@
|
|
| 139 |
{"current_steps": 1190, "total_steps": 1926, "loss": 0.47319779396057127, "lr": 9.982625728119653e-05, "epoch": 1.8545808966861599, "percentage": 61.79, "elapsed_time": "0:14:17", "remaining_time": "0:08:50"}
|
| 140 |
{"current_steps": 1200, "total_steps": 1926, "loss": 0.5757467746734619, "lr": 9.97425779918751e-05, "epoch": 1.8701754385964913, "percentage": 62.31, "elapsed_time": "0:14:46", "remaining_time": "0:08:56"}
|
| 141 |
{"current_steps": 1200, "total_steps": 1926, "eval_loss": 0.5070481896400452, "epoch": 1.8701754385964913, "percentage": 62.31, "elapsed_time": "0:15:28", "remaining_time": "0:09:21"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
{"current_steps": 1190, "total_steps": 1926, "loss": 0.47319779396057127, "lr": 9.982625728119653e-05, "epoch": 1.8545808966861599, "percentage": 61.79, "elapsed_time": "0:14:17", "remaining_time": "0:08:50"}
|
| 140 |
{"current_steps": 1200, "total_steps": 1926, "loss": 0.5757467746734619, "lr": 9.97425779918751e-05, "epoch": 1.8701754385964913, "percentage": 62.31, "elapsed_time": "0:14:46", "remaining_time": "0:08:56"}
|
| 141 |
{"current_steps": 1200, "total_steps": 1926, "eval_loss": 0.5070481896400452, "epoch": 1.8701754385964913, "percentage": 62.31, "elapsed_time": "0:15:28", "remaining_time": "0:09:21"}
|
| 142 |
+
{"current_steps": 1210, "total_steps": 1926, "loss": 0.469807767868042, "lr": 9.964255241945638e-05, "epoch": 1.8857699805068227, "percentage": 62.82, "elapsed_time": "0:16:02", "remaining_time": "0:09:29"}
|
| 143 |
+
{"current_steps": 1220, "total_steps": 1926, "loss": 0.49632534980773924, "lr": 9.952621343409685e-05, "epoch": 1.901364522417154, "percentage": 63.34, "elapsed_time": "0:16:31", "remaining_time": "0:09:33"}
|
| 144 |
+
{"current_steps": 1230, "total_steps": 1926, "loss": 0.4471562385559082, "lr": 9.93935992668265e-05, "epoch": 1.9169590643274854, "percentage": 63.86, "elapsed_time": "0:16:58", "remaining_time": "0:09:36"}
|
| 145 |
+
{"current_steps": 1240, "total_steps": 1926, "loss": 0.5234719753265381, "lr": 9.924475349698536e-05, "epoch": 1.9325536062378168, "percentage": 64.38, "elapsed_time": "0:17:31", "remaining_time": "0:09:41"}
|
| 146 |
+
{"current_steps": 1250, "total_steps": 1926, "loss": 0.41959614753723146, "lr": 9.907972503790263e-05, "epoch": 1.9481481481481482, "percentage": 64.9, "elapsed_time": "0:17:59", "remaining_time": "0:09:43"}
|