Text Generation
Transformers
Safetensors
qwen2
axolotl
Generated from Trainer
conversational
text-generation-inference
Instructions to use SystemAdmin123/tiny-dummy-qwen2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SystemAdmin123/tiny-dummy-qwen2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SystemAdmin123/tiny-dummy-qwen2") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SystemAdmin123/tiny-dummy-qwen2") model = AutoModelForCausalLM.from_pretrained("SystemAdmin123/tiny-dummy-qwen2") 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
- vLLM
How to use SystemAdmin123/tiny-dummy-qwen2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SystemAdmin123/tiny-dummy-qwen2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SystemAdmin123/tiny-dummy-qwen2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SystemAdmin123/tiny-dummy-qwen2
- SGLang
How to use SystemAdmin123/tiny-dummy-qwen2 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 "SystemAdmin123/tiny-dummy-qwen2" \ --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": "SystemAdmin123/tiny-dummy-qwen2", "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 "SystemAdmin123/tiny-dummy-qwen2" \ --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": "SystemAdmin123/tiny-dummy-qwen2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SystemAdmin123/tiny-dummy-qwen2 with Docker Model Runner:
docker model run hf.co/SystemAdmin123/tiny-dummy-qwen2
Training in progress, step 2500, checkpoint
Browse files
last-checkpoint/model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2433024
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a0bcec12c0a1fb6c8ef45fcba96ed788601918fd8ce201c4fd178411dc5bd310
|
| 3 |
size 2433024
|
last-checkpoint/optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2498406
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:86cdaaa9d7dcd5919660434789db9112aa69866e9fe9c4a368f52f5724f61694
|
| 3 |
size 2498406
|
last-checkpoint/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:7b204b20cdc92a140e2e21e015bdaa04af008c00e0bde30e59edf0f23817a338
|
| 3 |
size 1064
|
last-checkpoint/trainer_state.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
-
"epoch": 0.
|
| 5 |
"eval_steps": 200,
|
| 6 |
-
"global_step":
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
@@ -1791,6 +1791,76 @@
|
|
| 1791 |
"eval_samples_per_second": 40.85,
|
| 1792 |
"eval_steps_per_second": 10.226,
|
| 1793 |
"step": 2400
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1794 |
}
|
| 1795 |
],
|
| 1796 |
"logging_steps": 10,
|
|
@@ -1805,12 +1875,12 @@
|
|
| 1805 |
"should_evaluate": false,
|
| 1806 |
"should_log": false,
|
| 1807 |
"should_save": true,
|
| 1808 |
-
"should_training_stop":
|
| 1809 |
},
|
| 1810 |
"attributes": {}
|
| 1811 |
}
|
| 1812 |
},
|
| 1813 |
-
"total_flos":
|
| 1814 |
"train_batch_size": 4,
|
| 1815 |
"trial_name": null,
|
| 1816 |
"trial_params": null
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 0.7398638650488311,
|
| 5 |
"eval_steps": 200,
|
| 6 |
+
"global_step": 2500,
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
|
|
| 1791 |
"eval_samples_per_second": 40.85,
|
| 1792 |
"eval_steps_per_second": 10.226,
|
| 1793 |
"step": 2400
|
| 1794 |
+
},
|
| 1795 |
+
{
|
| 1796 |
+
"epoch": 0.7132287659070731,
|
| 1797 |
+
"grad_norm": 0.498046875,
|
| 1798 |
+
"learning_rate": 7.078065009060941e-07,
|
| 1799 |
+
"loss": 10.4885,
|
| 1800 |
+
"step": 2410
|
| 1801 |
+
},
|
| 1802 |
+
{
|
| 1803 |
+
"epoch": 0.7161882213672685,
|
| 1804 |
+
"grad_norm": 0.50390625,
|
| 1805 |
+
"learning_rate": 5.593931933399854e-07,
|
| 1806 |
+
"loss": 10.5281,
|
| 1807 |
+
"step": 2420
|
| 1808 |
+
},
|
| 1809 |
+
{
|
| 1810 |
+
"epoch": 0.7191476768274637,
|
| 1811 |
+
"grad_norm": 0.78125,
|
| 1812 |
+
"learning_rate": 4.2837911263562404e-07,
|
| 1813 |
+
"loss": 10.4985,
|
| 1814 |
+
"step": 2430
|
| 1815 |
+
},
|
| 1816 |
+
{
|
| 1817 |
+
"epoch": 0.7221071322876591,
|
| 1818 |
+
"grad_norm": 0.6328125,
|
| 1819 |
+
"learning_rate": 3.1478718246357173e-07,
|
| 1820 |
+
"loss": 10.6174,
|
| 1821 |
+
"step": 2440
|
| 1822 |
+
},
|
| 1823 |
+
{
|
| 1824 |
+
"epoch": 0.7250665877478544,
|
| 1825 |
+
"grad_norm": 0.99609375,
|
| 1826 |
+
"learning_rate": 2.1863727812254653e-07,
|
| 1827 |
+
"loss": 10.7935,
|
| 1828 |
+
"step": 2450
|
| 1829 |
+
},
|
| 1830 |
+
{
|
| 1831 |
+
"epoch": 0.7280260432080498,
|
| 1832 |
+
"grad_norm": 0.51953125,
|
| 1833 |
+
"learning_rate": 1.3994622306173765e-07,
|
| 1834 |
+
"loss": 10.5046,
|
| 1835 |
+
"step": 2460
|
| 1836 |
+
},
|
| 1837 |
+
{
|
| 1838 |
+
"epoch": 0.730985498668245,
|
| 1839 |
+
"grad_norm": 0.484375,
|
| 1840 |
+
"learning_rate": 7.872778593728258e-08,
|
| 1841 |
+
"loss": 10.5646,
|
| 1842 |
+
"step": 2470
|
| 1843 |
+
},
|
| 1844 |
+
{
|
| 1845 |
+
"epoch": 0.7339449541284404,
|
| 1846 |
+
"grad_norm": 0.6953125,
|
| 1847 |
+
"learning_rate": 3.499267820307184e-08,
|
| 1848 |
+
"loss": 10.5978,
|
| 1849 |
+
"step": 2480
|
| 1850 |
+
},
|
| 1851 |
+
{
|
| 1852 |
+
"epoch": 0.7369044095886357,
|
| 1853 |
+
"grad_norm": 0.6484375,
|
| 1854 |
+
"learning_rate": 8.748552236603757e-09,
|
| 1855 |
+
"loss": 10.6151,
|
| 1856 |
+
"step": 2490
|
| 1857 |
+
},
|
| 1858 |
+
{
|
| 1859 |
+
"epoch": 0.7398638650488311,
|
| 1860 |
+
"grad_norm": 1.140625,
|
| 1861 |
+
"learning_rate": 0.0,
|
| 1862 |
+
"loss": 10.6938,
|
| 1863 |
+
"step": 2500
|
| 1864 |
}
|
| 1865 |
],
|
| 1866 |
"logging_steps": 10,
|
|
|
|
| 1875 |
"should_evaluate": false,
|
| 1876 |
"should_log": false,
|
| 1877 |
"should_save": true,
|
| 1878 |
+
"should_training_stop": true
|
| 1879 |
},
|
| 1880 |
"attributes": {}
|
| 1881 |
}
|
| 1882 |
},
|
| 1883 |
+
"total_flos": 244972781568.0,
|
| 1884 |
"train_batch_size": 4,
|
| 1885 |
"trial_name": null,
|
| 1886 |
"trial_params": null
|