Instructions to use alvaro-mazcu/Qwen3-4B-Instruct-FineTome with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use alvaro-mazcu/Qwen3-4B-Instruct-FineTome with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-4B-Instruct-2507") model = PeftModel.from_pretrained(base_model, "alvaro-mazcu/Qwen3-4B-Instruct-FineTome") - Transformers
How to use alvaro-mazcu/Qwen3-4B-Instruct-FineTome with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="alvaro-mazcu/Qwen3-4B-Instruct-FineTome") 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("alvaro-mazcu/Qwen3-4B-Instruct-FineTome", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use alvaro-mazcu/Qwen3-4B-Instruct-FineTome with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "alvaro-mazcu/Qwen3-4B-Instruct-FineTome" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "alvaro-mazcu/Qwen3-4B-Instruct-FineTome", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/alvaro-mazcu/Qwen3-4B-Instruct-FineTome
- SGLang
How to use alvaro-mazcu/Qwen3-4B-Instruct-FineTome 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 "alvaro-mazcu/Qwen3-4B-Instruct-FineTome" \ --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": "alvaro-mazcu/Qwen3-4B-Instruct-FineTome", "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 "alvaro-mazcu/Qwen3-4B-Instruct-FineTome" \ --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": "alvaro-mazcu/Qwen3-4B-Instruct-FineTome", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use alvaro-mazcu/Qwen3-4B-Instruct-FineTome with Docker Model Runner:
docker model run hf.co/alvaro-mazcu/Qwen3-4B-Instruct-FineTome
Upload fine-tuned weights
Browse files- adapter_config.json +4 -4
- adapter_model.safetensors +1 -1
- optimizer.pt +1 -1
- rng_state_0.pth +3 -0
- rng_state_1.pth +3 -0
- rng_state_2.pth +3 -0
- rng_state_3.pth +3 -0
- scheduler.pt +1 -1
- trainer_state.json +0 -0
- training_args.bin +1 -1
adapter_config.json
CHANGED
|
@@ -29,13 +29,13 @@
|
|
| 29 |
"rank_pattern": {},
|
| 30 |
"revision": null,
|
| 31 |
"target_modules": [
|
| 32 |
-
"o_proj",
|
| 33 |
-
"q_proj",
|
| 34 |
-
"up_proj",
|
| 35 |
"gate_proj",
|
| 36 |
"v_proj",
|
|
|
|
| 37 |
"k_proj",
|
| 38 |
-
"
|
|
|
|
|
|
|
| 39 |
],
|
| 40 |
"target_parameters": null,
|
| 41 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 29 |
"rank_pattern": {},
|
| 30 |
"revision": null,
|
| 31 |
"target_modules": [
|
|
|
|
|
|
|
|
|
|
| 32 |
"gate_proj",
|
| 33 |
"v_proj",
|
| 34 |
+
"o_proj",
|
| 35 |
"k_proj",
|
| 36 |
+
"up_proj",
|
| 37 |
+
"down_proj",
|
| 38 |
+
"q_proj"
|
| 39 |
],
|
| 40 |
"target_parameters": null,
|
| 41 |
"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 132187888
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:993ac38965b7173cdc9c5cb26ffbdb78eec9cb2e414dcd15e88c565123a70fe2
|
| 3 |
size 132187888
|
optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 264665722
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2ec6a7de69b750424de3374ccbb1b8bee290d2b53b43b93c4a63b562edb533f5
|
| 3 |
size 264665722
|
rng_state_0.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5601f15f52ba0d8ad0112af3483c8dc68b69980761aaa00ba8e2e0934620ab2e
|
| 3 |
+
size 15024
|
rng_state_1.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a0da7e1d17c697aaef41b3be0575bb46f696f9f3b3b218f999fc50c0cb05879
|
| 3 |
+
size 15024
|
rng_state_2.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:96608755cbab1f2d50282ab6b3216dedf22840b91db06faa9f0cda019102a49f
|
| 3 |
+
size 15024
|
rng_state_3.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3f79566fb461a74e6648d66df61e7e4dd159e543571c5bd9fda82bd9d7bdd79c
|
| 3 |
+
size 15024
|
scheduler.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1064
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a874180b755e9d58bf15e2e408e0ca2ab352a2de5eb72405b91eaef6ebc52866
|
| 3 |
size 1064
|
trainer_state.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5752
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f11a52a18071568303536ae9be838a3ecfa3317a8aece3d9e9314a2d12d64b9a
|
| 3 |
size 5752
|