Text Generation
Transformers
Safetensors
qwen3
Generated from Trainer
trl
sft
unsloth
conversational
text-generation-inference
Instructions to use Ba2han/experimental4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ba2han/experimental4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ba2han/experimental4") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Ba2han/experimental4") model = AutoModelForCausalLM.from_pretrained("Ba2han/experimental4", 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 Ba2han/experimental4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ba2han/experimental4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ba2han/experimental4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Ba2han/experimental4
- SGLang
How to use Ba2han/experimental4 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 "Ba2han/experimental4" \ --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": "Ba2han/experimental4", "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 "Ba2han/experimental4" \ --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": "Ba2han/experimental4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use Ba2han/experimental4 with Docker Model Runner:
docker model run hf.co/Ba2han/experimental4
Training in progress, step 381
Browse files- README.md +5 -6
- config.json +4 -4
- model.safetensors +2 -2
- tokenizer.json +0 -18
- tokenizer_config.json +1 -21
- training_args.bin +2 -2
README.md
CHANGED
|
@@ -1,18 +1,17 @@
|
|
| 1 |
---
|
| 2 |
-
base_model: Ba2han/exp4
|
| 3 |
library_name: transformers
|
| 4 |
model_name: experimental4
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
| 7 |
-
- sft
|
| 8 |
- trl
|
|
|
|
| 9 |
- unsloth
|
| 10 |
licence: license
|
| 11 |
---
|
| 12 |
|
| 13 |
# Model Card for experimental4
|
| 14 |
|
| 15 |
-
This model is a fine-tuned version of [
|
| 16 |
It has been trained using [TRL](https://github.com/huggingface/trl).
|
| 17 |
|
| 18 |
## Quick start
|
|
@@ -28,7 +27,7 @@ print(output["generated_text"])
|
|
| 28 |
|
| 29 |
## Training procedure
|
| 30 |
|
| 31 |
-
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/batuhan409/huggingface/runs/
|
| 32 |
|
| 33 |
|
| 34 |
This model was trained with SFT.
|
|
@@ -37,8 +36,8 @@ This model was trained with SFT.
|
|
| 37 |
|
| 38 |
- TRL: 0.24.0
|
| 39 |
- Transformers: 5.5.0
|
| 40 |
-
- Pytorch: 2.11.0
|
| 41 |
-
- Datasets: 4.
|
| 42 |
- Tokenizers: 0.22.2
|
| 43 |
|
| 44 |
## Citations
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
library_name: transformers
|
| 3 |
model_name: experimental4
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
|
|
|
| 6 |
- trl
|
| 7 |
+
- sft
|
| 8 |
- unsloth
|
| 9 |
licence: license
|
| 10 |
---
|
| 11 |
|
| 12 |
# Model Card for experimental4
|
| 13 |
|
| 14 |
+
This model is a fine-tuned version of [None](https://huggingface.co/None).
|
| 15 |
It has been trained using [TRL](https://github.com/huggingface/trl).
|
| 16 |
|
| 17 |
## Quick start
|
|
|
|
| 27 |
|
| 28 |
## Training procedure
|
| 29 |
|
| 30 |
+
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/batuhan409/huggingface/runs/dsj9s07q)
|
| 31 |
|
| 32 |
|
| 33 |
This model was trained with SFT.
|
|
|
|
| 36 |
|
| 37 |
- TRL: 0.24.0
|
| 38 |
- Transformers: 5.5.0
|
| 39 |
+
- Pytorch: 2.11.0
|
| 40 |
+
- Datasets: 4.8.0
|
| 41 |
- Tokenizers: 0.22.2
|
| 42 |
|
| 43 |
## Citations
|
config.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
"attention_bias": false,
|
| 6 |
"attention_dropout": 0.0,
|
| 7 |
"bos_token_id": 2,
|
| 8 |
-
"dtype": "
|
| 9 |
"eos_token_id": 3,
|
| 10 |
"head_dim": 128,
|
| 11 |
"hidden_act": "silu",
|
|
@@ -58,7 +58,7 @@
|
|
| 58 |
],
|
| 59 |
"max_position_embeddings": 8192,
|
| 60 |
"max_window_layers": 42,
|
| 61 |
-
"model_name": "
|
| 62 |
"model_type": "qwen3",
|
| 63 |
"num_attention_heads": 16,
|
| 64 |
"num_hidden_layers": 42,
|
|
@@ -72,8 +72,8 @@
|
|
| 72 |
"sliding_window": null,
|
| 73 |
"tie_word_embeddings": true,
|
| 74 |
"transformers_version": "5.5.0",
|
| 75 |
-
"unsloth_version": "2026.8.
|
| 76 |
"use_cache": false,
|
| 77 |
"use_sliding_window": false,
|
| 78 |
-
"vocab_size":
|
| 79 |
}
|
|
|
|
| 5 |
"attention_bias": false,
|
| 6 |
"attention_dropout": 0.0,
|
| 7 |
"bos_token_id": 2,
|
| 8 |
+
"dtype": "bfloat16",
|
| 9 |
"eos_token_id": 3,
|
| 10 |
"head_dim": 128,
|
| 11 |
"hidden_act": "silu",
|
|
|
|
| 58 |
],
|
| 59 |
"max_position_embeddings": 8192,
|
| 60 |
"max_window_layers": 42,
|
| 61 |
+
"model_name": "./checkpoint-19950",
|
| 62 |
"model_type": "qwen3",
|
| 63 |
"num_attention_heads": 16,
|
| 64 |
"num_hidden_layers": 42,
|
|
|
|
| 72 |
"sliding_window": null,
|
| 73 |
"tie_word_embeddings": true,
|
| 74 |
"transformers_version": "5.5.0",
|
| 75 |
+
"unsloth_version": "2026.8.18",
|
| 76 |
"use_cache": false,
|
| 77 |
"use_sliding_window": false,
|
| 78 |
+
"vocab_size": 60800
|
| 79 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:37d6e95c98936fab8c8afd2e2683627d3bec1d3e74e4c9c493103eb30fbb86bd
|
| 3 |
+
size 2190141824
|
tokenizer.json
CHANGED
|
@@ -2342,24 +2342,6 @@
|
|
| 2342 |
"rstrip": false,
|
| 2343 |
"normalized": false,
|
| 2344 |
"special": true
|
| 2345 |
-
},
|
| 2346 |
-
{
|
| 2347 |
-
"id": 60800,
|
| 2348 |
-
"content": "<|im_start|>",
|
| 2349 |
-
"single_word": false,
|
| 2350 |
-
"lstrip": false,
|
| 2351 |
-
"rstrip": false,
|
| 2352 |
-
"normalized": false,
|
| 2353 |
-
"special": true
|
| 2354 |
-
},
|
| 2355 |
-
{
|
| 2356 |
-
"id": 60801,
|
| 2357 |
-
"content": "<|im_end|>",
|
| 2358 |
-
"single_word": false,
|
| 2359 |
-
"lstrip": false,
|
| 2360 |
-
"rstrip": false,
|
| 2361 |
-
"normalized": false,
|
| 2362 |
-
"special": true
|
| 2363 |
}
|
| 2364 |
],
|
| 2365 |
"normalizer": {
|
|
|
|
| 2342 |
"rstrip": false,
|
| 2343 |
"normalized": false,
|
| 2344 |
"special": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2345 |
}
|
| 2346 |
],
|
| 2347 |
"normalizer": {
|
tokenizer_config.json
CHANGED
|
@@ -3,11 +3,7 @@
|
|
| 3 |
"bos_token": "<bos>",
|
| 4 |
"clean_up_tokenization_spaces": false,
|
| 5 |
"eos_token": "<eos>",
|
| 6 |
-
"
|
| 7 |
-
"<|im_start|>",
|
| 8 |
-
"<|im_end|>"
|
| 9 |
-
],
|
| 10 |
-
"is_local": false,
|
| 11 |
"model_max_length": 1000000000000000019884624838656,
|
| 12 |
"pad_token": "<pad>",
|
| 13 |
"padding_side": "right",
|
|
@@ -2093,22 +2089,6 @@
|
|
| 2093 |
"rstrip": false,
|
| 2094 |
"normalized": false,
|
| 2095 |
"special": true
|
| 2096 |
-
},
|
| 2097 |
-
"60800": {
|
| 2098 |
-
"content": "<|im_start|>",
|
| 2099 |
-
"single_word": false,
|
| 2100 |
-
"lstrip": false,
|
| 2101 |
-
"rstrip": false,
|
| 2102 |
-
"normalized": false,
|
| 2103 |
-
"special": true
|
| 2104 |
-
},
|
| 2105 |
-
"60801": {
|
| 2106 |
-
"content": "<|im_end|>",
|
| 2107 |
-
"single_word": false,
|
| 2108 |
-
"lstrip": false,
|
| 2109 |
-
"rstrip": false,
|
| 2110 |
-
"normalized": false,
|
| 2111 |
-
"special": true
|
| 2112 |
}
|
| 2113 |
}
|
| 2114 |
}
|
|
|
|
| 3 |
"bos_token": "<bos>",
|
| 4 |
"clean_up_tokenization_spaces": false,
|
| 5 |
"eos_token": "<eos>",
|
| 6 |
+
"is_local": true,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
"model_max_length": 1000000000000000019884624838656,
|
| 8 |
"pad_token": "<pad>",
|
| 9 |
"padding_side": "right",
|
|
|
|
| 2089 |
"rstrip": false,
|
| 2090 |
"normalized": false,
|
| 2091 |
"special": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2092 |
}
|
| 2093 |
}
|
| 2094 |
}
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:13fa61fe403b6422841e37249e904cec613858fa5db70069bf460fac44c0db28
|
| 3 |
+
size 5713
|