Instructions to use ynanxiu/qwen25-3b-coffee-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use ynanxiu/qwen25-3b-coffee-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-3B-Instruct") model = PeftModel.from_pretrained(base_model, "ynanxiu/qwen25-3b-coffee-lora") - Transformers
How to use ynanxiu/qwen25-3b-coffee-lora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ynanxiu/qwen25-3b-coffee-lora") 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("ynanxiu/qwen25-3b-coffee-lora", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use ynanxiu/qwen25-3b-coffee-lora with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf ynanxiu/qwen25-3b-coffee-lora # Run inference directly in the terminal: llama cli -hf ynanxiu/qwen25-3b-coffee-lora
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ynanxiu/qwen25-3b-coffee-lora # Run inference directly in the terminal: llama cli -hf ynanxiu/qwen25-3b-coffee-lora
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf ynanxiu/qwen25-3b-coffee-lora # Run inference directly in the terminal: ./llama-cli -hf ynanxiu/qwen25-3b-coffee-lora
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf ynanxiu/qwen25-3b-coffee-lora # Run inference directly in the terminal: ./build/bin/llama-cli -hf ynanxiu/qwen25-3b-coffee-lora
Use Docker
docker model run hf.co/ynanxiu/qwen25-3b-coffee-lora
- LM Studio
- Jan
- vLLM
How to use ynanxiu/qwen25-3b-coffee-lora with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ynanxiu/qwen25-3b-coffee-lora" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ynanxiu/qwen25-3b-coffee-lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ynanxiu/qwen25-3b-coffee-lora
- SGLang
How to use ynanxiu/qwen25-3b-coffee-lora 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 "ynanxiu/qwen25-3b-coffee-lora" \ --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": "ynanxiu/qwen25-3b-coffee-lora", "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 "ynanxiu/qwen25-3b-coffee-lora" \ --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": "ynanxiu/qwen25-3b-coffee-lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use ynanxiu/qwen25-3b-coffee-lora with Ollama:
ollama run hf.co/ynanxiu/qwen25-3b-coffee-lora
- Unsloth Desktop
- Pi
How to use ynanxiu/qwen25-3b-coffee-lora with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ynanxiu/qwen25-3b-coffee-lora
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "ynanxiu/qwen25-3b-coffee-lora" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use ynanxiu/qwen25-3b-coffee-lora with Docker Model Runner:
docker model run hf.co/ynanxiu/qwen25-3b-coffee-lora
- Lemonade
How to use ynanxiu/qwen25-3b-coffee-lora with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ynanxiu/qwen25-3b-coffee-lora
Run and chat with the model
lemonade run user.qwen25-3b-coffee-lora-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use ynanxiu/qwen25-3b-coffee-lora with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ynanxiu/qwen25-3b-coffee-lora
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default ynanxiu/qwen25-3b-coffee-lora
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use ynanxiu/qwen25-3b-coffee-lora with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ynanxiu/qwen25-3b-coffee-lora
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "ynanxiu/qwen25-3b-coffee-lora" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Download trainer_state.json from ynanxiu/qwen25-3b-coffee-lora: direct link, hf CLI and curl.
- Browser
- Download file 2.31 kB
-
https://huggingface.co/ynanxiu/qwen25-3b-coffee-lora/resolve/main/trainer_state.json
- Command line
-
hf download hf://ynanxiu/qwen25-3b-coffee-lora/trainer_state.json
-
curl -L -o trainer_state.json https://huggingface.co/ynanxiu/qwen25-3b-coffee-lora/resolve/main/trainer_state.json
2.31 kB
| { | |
| "best_global_step": null, | |
| "best_metric": null, | |
| "best_model_checkpoint": null, | |
| "epoch": 8.0, | |
| "eval_steps": 500, | |
| "global_step": 88, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 0.975609756097561, | |
| "grad_norm": 3.4229159355163574, | |
| "learning_rate": 0.0002, | |
| "loss": 4.659366226196289, | |
| "step": 10 | |
| }, | |
| { | |
| "epoch": 1.8780487804878048, | |
| "grad_norm": 1.1556655168533325, | |
| "learning_rate": 0.00019219658547282067, | |
| "loss": 2.0287652969360352, | |
| "step": 20 | |
| }, | |
| { | |
| "epoch": 2.7804878048780486, | |
| "grad_norm": 0.8790391683578491, | |
| "learning_rate": 0.00017000420745694254, | |
| "loss": 1.2084564208984374, | |
| "step": 30 | |
| }, | |
| { | |
| "epoch": 3.682926829268293, | |
| "grad_norm": 0.981283962726593, | |
| "learning_rate": 0.00013688639245240078, | |
| "loss": 1.0302597045898438, | |
| "step": 40 | |
| }, | |
| { | |
| "epoch": 4.585365853658536, | |
| "grad_norm": 1.0220673084259033, | |
| "learning_rate": 9.801178123349298e-05, | |
| "loss": 0.8048470497131348, | |
| "step": 50 | |
| }, | |
| { | |
| "epoch": 5.487804878048781, | |
| "grad_norm": 0.9974339008331299, | |
| "learning_rate": 5.9447467918700614e-05, | |
| "loss": 0.6644424438476563, | |
| "step": 60 | |
| }, | |
| { | |
| "epoch": 6.390243902439025, | |
| "grad_norm": 1.2583245038986206, | |
| "learning_rate": 2.7212118963050592e-05, | |
| "loss": 0.5137343406677246, | |
| "step": 70 | |
| }, | |
| { | |
| "epoch": 7.2926829268292686, | |
| "grad_norm": 1.1937904357910156, | |
| "learning_rate": 6.336650173127223e-06, | |
| "loss": 0.4234976291656494, | |
| "step": 80 | |
| } | |
| ], | |
| "logging_steps": 10, | |
| "max_steps": 88, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 8, | |
| "save_steps": 60, | |
| "stateful_callbacks": { | |
| "TrainerControl": { | |
| "args": { | |
| "should_epoch_stop": false, | |
| "should_evaluate": false, | |
| "should_log": false, | |
| "should_save": true, | |
| "should_training_stop": true | |
| }, | |
| "attributes": {} | |
| } | |
| }, | |
| "total_flos": 1648669707730944.0, | |
| "train_batch_size": 2, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |