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 600
Browse files
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:c302a7e2bf18d00e52125c8cd5d8f837cb16b6052f24cb5c872ec257069b8e6d
|
| 3 |
size 3443592744
|
added_tokens.json
CHANGED
|
@@ -1,24 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"</tool_call>": 151658,
|
| 3 |
-
"<tool_call>": 151657,
|
| 4 |
-
"<|box_end|>": 151649,
|
| 5 |
-
"<|box_start|>": 151648,
|
| 6 |
"<|endoftext|>": 151643,
|
| 7 |
-
"<|file_sep|>": 151664,
|
| 8 |
-
"<|fim_middle|>": 151660,
|
| 9 |
-
"<|fim_pad|>": 151662,
|
| 10 |
-
"<|fim_prefix|>": 151659,
|
| 11 |
-
"<|fim_suffix|>": 151661,
|
| 12 |
"<|im_end|>": 151645,
|
| 13 |
-
"<|im_start|>": 151644
|
| 14 |
-
"<|image_pad|>": 151655,
|
| 15 |
-
"<|object_ref_end|>": 151647,
|
| 16 |
-
"<|object_ref_start|>": 151646,
|
| 17 |
-
"<|quad_end|>": 151651,
|
| 18 |
-
"<|quad_start|>": 151650,
|
| 19 |
-
"<|repo_name|>": 151663,
|
| 20 |
-
"<|video_pad|>": 151656,
|
| 21 |
-
"<|vision_end|>": 151653,
|
| 22 |
-
"<|vision_pad|>": 151654,
|
| 23 |
-
"<|vision_start|>": 151652
|
| 24 |
}
|
|
|
|
| 1 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
"<|endoftext|>": 151643,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
"<|im_end|>": 151645,
|
| 4 |
+
"<|im_start|>": 151644
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
}
|
config.json
CHANGED
|
@@ -3,26 +3,24 @@
|
|
| 3 |
"Qwen2ForCausalLM"
|
| 4 |
],
|
| 5 |
"attention_dropout": 0.0,
|
| 6 |
-
"eos_token_id":
|
| 7 |
"hidden_act": "silu",
|
| 8 |
-
"hidden_size":
|
| 9 |
"initializer_range": 0.02,
|
| 10 |
-
"intermediate_size":
|
| 11 |
"max_position_embeddings": 32768,
|
| 12 |
"max_window_layers": 21,
|
| 13 |
"model_type": "qwen2",
|
| 14 |
-
"num_attention_heads":
|
| 15 |
"num_hidden_layers": 24,
|
| 16 |
-
"num_key_value_heads":
|
| 17 |
-
"pad_token_id": 151654,
|
| 18 |
"rms_norm_eps": 1e-06,
|
| 19 |
"rope_scaling": null,
|
| 20 |
"rope_theta": 1000000.0,
|
| 21 |
-
"sliding_window":
|
| 22 |
"tie_word_embeddings": true,
|
| 23 |
"torch_dtype": "bfloat16",
|
| 24 |
"transformers_version": "4.52.3",
|
| 25 |
-
"unsloth_fixed": true,
|
| 26 |
"use_cache": false,
|
| 27 |
"use_sliding_window": false,
|
| 28 |
"vocab_size": 151936
|
|
|
|
| 3 |
"Qwen2ForCausalLM"
|
| 4 |
],
|
| 5 |
"attention_dropout": 0.0,
|
| 6 |
+
"eos_token_id": 151643,
|
| 7 |
"hidden_act": "silu",
|
| 8 |
+
"hidden_size": 1024,
|
| 9 |
"initializer_range": 0.02,
|
| 10 |
+
"intermediate_size": 2816,
|
| 11 |
"max_position_embeddings": 32768,
|
| 12 |
"max_window_layers": 21,
|
| 13 |
"model_type": "qwen2",
|
| 14 |
+
"num_attention_heads": 16,
|
| 15 |
"num_hidden_layers": 24,
|
| 16 |
+
"num_key_value_heads": 16,
|
|
|
|
| 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
|
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:747bb41d29c50396808a61b7e976bacafe4aa5f20f8dc3b69d71f258144e0fc6
|
| 3 |
+
size 957960
|