Text Generation
Transformers
TensorBoard
Safetensors
English
qwen3
text-generation-inference
unsloth
conversational
Instructions to use Svngoku/youtube-summarizer-qwen3-4b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Svngoku/youtube-summarizer-qwen3-4b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Svngoku/youtube-summarizer-qwen3-4b") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Svngoku/youtube-summarizer-qwen3-4b") model = AutoModelForCausalLM.from_pretrained("Svngoku/youtube-summarizer-qwen3-4b", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Svngoku/youtube-summarizer-qwen3-4b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Svngoku/youtube-summarizer-qwen3-4b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Svngoku/youtube-summarizer-qwen3-4b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Svngoku/youtube-summarizer-qwen3-4b
- SGLang
How to use Svngoku/youtube-summarizer-qwen3-4b 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 "Svngoku/youtube-summarizer-qwen3-4b" \ --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": "Svngoku/youtube-summarizer-qwen3-4b", "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 "Svngoku/youtube-summarizer-qwen3-4b" \ --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": "Svngoku/youtube-summarizer-qwen3-4b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio
How to use Svngoku/youtube-summarizer-qwen3-4b with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Svngoku/youtube-summarizer-qwen3-4b to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Svngoku/youtube-summarizer-qwen3-4b to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Svngoku/youtube-summarizer-qwen3-4b to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Svngoku/youtube-summarizer-qwen3-4b", max_seq_length=2048, ) - Docker Model Runner
How to use Svngoku/youtube-summarizer-qwen3-4b with Docker Model Runner:
docker model run hf.co/Svngoku/youtube-summarizer-qwen3-4b
Training in progress, step 2
Browse files
README.md
CHANGED
|
@@ -4,10 +4,10 @@ library_name: transformers
|
|
| 4 |
model_name: youtube-summarizer-qwen3-4b
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
|
|
|
| 7 |
- sft
|
| 8 |
- hf_jobs
|
| 9 |
- trl
|
| 10 |
-
- unsloth
|
| 11 |
licence: license
|
| 12 |
---
|
| 13 |
|
|
|
|
| 4 |
model_name: youtube-summarizer-qwen3-4b
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
| 7 |
+
- unsloth
|
| 8 |
- sft
|
| 9 |
- hf_jobs
|
| 10 |
- trl
|
|
|
|
| 11 |
licence: license
|
| 12 |
---
|
| 13 |
|
adapter_config.json
CHANGED
|
@@ -34,13 +34,13 @@
|
|
| 34 |
"rank_pattern": {},
|
| 35 |
"revision": null,
|
| 36 |
"target_modules": [
|
| 37 |
-
"
|
| 38 |
-
"
|
| 39 |
"down_proj",
|
| 40 |
"q_proj",
|
| 41 |
-
"
|
| 42 |
"v_proj",
|
| 43 |
-
"
|
| 44 |
],
|
| 45 |
"target_parameters": null,
|
| 46 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 34 |
"rank_pattern": {},
|
| 35 |
"revision": null,
|
| 36 |
"target_modules": [
|
| 37 |
+
"up_proj",
|
| 38 |
+
"gate_proj",
|
| 39 |
"down_proj",
|
| 40 |
"q_proj",
|
| 41 |
+
"k_proj",
|
| 42 |
"v_proj",
|
| 43 |
+
"o_proj"
|
| 44 |
],
|
| 45 |
"target_parameters": null,
|
| 46 |
"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:e81249e4604d8edf43d4af29e9329c5d02233a1f7ed8d9c86a7822beb15f1a2e
|
| 3 |
size 132187888
|
runs/Jun07_20-32-44_j-svngoku-6a25d510ece949d7b3dcb27d-fr7pi69e-87965-xxb4w/events.out.tfevents.1780864384.j-svngoku-6a25d510ece949d7b3dcb27d-fr7pi69e-87965-xxb4w.61.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:538a282b596db8ed0f139395f8fa2c25d632115d1709cd8a946c28930ef62138
|
| 3 |
+
size 7470
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 6417
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f60cbe922b4ca1336d07a83236ddc4d728e91b8a007bae8844b9605703a74ae3
|
| 3 |
size 6417
|