Text Generation
Transformers
TensorBoard
Safetensors
qwen3
Generated from Trainer
axolotl
trl
grpo
conversational
text-generation-inference
Instructions to use dada22231/1eec3dfe-b42d-44d4-b250-e03587e527dd with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dada22231/1eec3dfe-b42d-44d4-b250-e03587e527dd with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="dada22231/1eec3dfe-b42d-44d4-b250-e03587e527dd") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("dada22231/1eec3dfe-b42d-44d4-b250-e03587e527dd") model = AutoModelForCausalLM.from_pretrained("dada22231/1eec3dfe-b42d-44d4-b250-e03587e527dd", 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 dada22231/1eec3dfe-b42d-44d4-b250-e03587e527dd with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dada22231/1eec3dfe-b42d-44d4-b250-e03587e527dd" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dada22231/1eec3dfe-b42d-44d4-b250-e03587e527dd", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/dada22231/1eec3dfe-b42d-44d4-b250-e03587e527dd
- SGLang
How to use dada22231/1eec3dfe-b42d-44d4-b250-e03587e527dd 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 "dada22231/1eec3dfe-b42d-44d4-b250-e03587e527dd" \ --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": "dada22231/1eec3dfe-b42d-44d4-b250-e03587e527dd", "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 "dada22231/1eec3dfe-b42d-44d4-b250-e03587e527dd" \ --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": "dada22231/1eec3dfe-b42d-44d4-b250-e03587e527dd", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use dada22231/1eec3dfe-b42d-44d4-b250-e03587e527dd with Docker Model Runner:
docker model run hf.co/dada22231/1eec3dfe-b42d-44d4-b250-e03587e527dd
Training in progress, step 150
Browse files- adapter_config.json +1 -1
- adapter_model.safetensors +1 -1
- config.json +21 -48
- merges.txt +0 -0
- runs/Jun10_15-43-46_ed3e63477d80/events.out.tfevents.1749570233.ed3e63477d80.281.0 +2 -2
- runs/Jun10_18-18-52_281190cd23f4/events.out.tfevents.1749579538.281190cd23f4.281.0 +3 -0
- runs/Jun10_18-50-44_658ebac1f2a9/events.out.tfevents.1749581450.658ebac1f2a9.281.0 +3 -0
- tokenizer.model +2 -2
- vocab.json +0 -0
adapter_config.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"alpha_pattern": {},
|
| 3 |
"auto_mapping": null,
|
| 4 |
-
"base_model_name_or_path":
|
| 5 |
"bias": "none",
|
| 6 |
"corda_config": null,
|
| 7 |
"eva_config": null,
|
|
|
|
| 1 |
{
|
| 2 |
"alpha_pattern": {},
|
| 3 |
"auto_mapping": null,
|
| 4 |
+
"base_model_name_or_path": null,
|
| 5 |
"bias": "none",
|
| 6 |
"corda_config": null,
|
| 7 |
"eva_config": null,
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3443592744
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:626cde8bce5a5d019230b07aeeb6244eabb17cdddb5929f4ae3af2a2726d5ba7
|
| 3 |
size 3443592744
|
config.json
CHANGED
|
@@ -1,54 +1,27 @@
|
|
| 1 |
{
|
| 2 |
-
"activation_function": "gelu_new",
|
| 3 |
"architectures": [
|
| 4 |
-
"
|
| 5 |
],
|
| 6 |
-
"attention_dropout": 0,
|
| 7 |
-
"
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
"global",
|
| 11 |
-
"local",
|
| 12 |
-
"global",
|
| 13 |
-
"local",
|
| 14 |
-
"global",
|
| 15 |
-
"local",
|
| 16 |
-
"global",
|
| 17 |
-
"local",
|
| 18 |
-
"global",
|
| 19 |
-
"local"
|
| 20 |
-
],
|
| 21 |
-
"attention_types": [
|
| 22 |
-
[
|
| 23 |
-
[
|
| 24 |
-
"global",
|
| 25 |
-
"local"
|
| 26 |
-
],
|
| 27 |
-
6
|
| 28 |
-
]
|
| 29 |
-
],
|
| 30 |
-
"bos_token_id": 50256,
|
| 31 |
-
"classifier_dropout": 0.1,
|
| 32 |
-
"embed_dropout": 0,
|
| 33 |
-
"eos_token_id": 50256,
|
| 34 |
-
"gradient_checkpointing": false,
|
| 35 |
-
"hidden_size": 768,
|
| 36 |
"initializer_range": 0.02,
|
| 37 |
-
"intermediate_size":
|
| 38 |
-
"
|
| 39 |
-
"
|
| 40 |
-
"model_type": "
|
| 41 |
-
"
|
| 42 |
-
"
|
| 43 |
-
"
|
| 44 |
-
"
|
| 45 |
-
"
|
| 46 |
-
"
|
| 47 |
-
"
|
| 48 |
-
"
|
| 49 |
-
"torch_dtype": "
|
| 50 |
-
"transformers_version": "4.
|
| 51 |
"use_cache": false,
|
| 52 |
-
"
|
| 53 |
-
"
|
| 54 |
}
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
+
"Qwen2ForCausalLM"
|
| 4 |
],
|
| 5 |
+
"attention_dropout": 0.0,
|
| 6 |
+
"eos_token_id": 151645,
|
| 7 |
+
"hidden_act": "silu",
|
| 8 |
+
"hidden_size": 2048,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
"initializer_range": 0.02,
|
| 10 |
+
"intermediate_size": 11008,
|
| 11 |
+
"max_position_embeddings": 32768,
|
| 12 |
+
"max_window_layers": 70,
|
| 13 |
+
"model_type": "qwen2",
|
| 14 |
+
"num_attention_heads": 16,
|
| 15 |
+
"num_hidden_layers": 36,
|
| 16 |
+
"num_key_value_heads": 2,
|
| 17 |
+
"rms_norm_eps": 1e-06,
|
| 18 |
+
"rope_scaling": null,
|
| 19 |
+
"rope_theta": 1000000.0,
|
| 20 |
+
"sliding_window": 32768,
|
| 21 |
+
"tie_word_embeddings": true,
|
| 22 |
+
"torch_dtype": "bfloat16",
|
| 23 |
+
"transformers_version": "4.52.3",
|
| 24 |
"use_cache": false,
|
| 25 |
+
"use_sliding_window": false,
|
| 26 |
+
"vocab_size": 151936
|
| 27 |
}
|
merges.txt
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
runs/Jun10_15-43-46_ed3e63477d80/events.out.tfevents.1749570233.ed3e63477d80.281.0
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:71e3a1a4ab2678265148153381a18a87a54d27ee8ed6b296153baa7f78e645e1
|
| 3 |
+
size 242910
|
runs/Jun10_18-18-52_281190cd23f4/events.out.tfevents.1749579538.281190cd23f4.281.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d1e0e99b9d2393448a8df149d455afe759a2a04f58f7ae11ca18d308cebd9ff8
|
| 3 |
+
size 7904
|
runs/Jun10_18-50-44_658ebac1f2a9/events.out.tfevents.1749581450.658ebac1f2a9.281.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:631994a159ba98dce996e687535d7db3079de1d02261c57f5c41a2d376ccff4f
|
| 3 |
+
size 7877
|
tokenizer.model
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:61a7b147390c64585d6c3543dd6fc636906c9af3865a5548f27f31aee1d4c8e2
|
| 3 |
+
size 4241003
|
vocab.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|