Instructions to use w-ahmad/2M-ACT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use w-ahmad/2M-ACT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="w-ahmad/2M-ACT")# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("w-ahmad/2M-ACT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use w-ahmad/2M-ACT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "w-ahmad/2M-ACT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "w-ahmad/2M-ACT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/w-ahmad/2M-ACT
- SGLang
How to use w-ahmad/2M-ACT 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 "w-ahmad/2M-ACT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "w-ahmad/2M-ACT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "w-ahmad/2M-ACT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "w-ahmad/2M-ACT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use w-ahmad/2M-ACT with Docker Model Runner:
docker model run hf.co/w-ahmad/2M-ACT
End of training
Browse files- .gitattributes +1 -0
- README.md +23 -23
- config.json +1 -1
- model.safetensors +1 -1
- training_args.bin +1 -1
- training_log.jsonl +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
training_log.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -14,7 +14,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 14 |
|
| 15 |
This model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.
|
| 16 |
It achieves the following results on the evaluation set:
|
| 17 |
-
- Loss: 0.
|
| 18 |
|
| 19 |
## Model description
|
| 20 |
|
|
@@ -33,7 +33,7 @@ More information needed
|
|
| 33 |
### Training hyperparameters
|
| 34 |
|
| 35 |
The following hyperparameters were used during training:
|
| 36 |
-
- learning_rate: 0.
|
| 37 |
- train_batch_size: 64
|
| 38 |
- eval_batch_size: 64
|
| 39 |
- seed: 42
|
|
@@ -45,27 +45,27 @@ The following hyperparameters were used during training:
|
|
| 45 |
|
| 46 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 47 |
|:-------------:|:------:|:----:|:---------------:|
|
| 48 |
-
|
|
| 49 |
-
| 0.
|
| 50 |
-
| 0.
|
| 51 |
-
| 0.
|
| 52 |
-
| 0.
|
| 53 |
-
| 0.
|
| 54 |
-
| 0.
|
| 55 |
-
| 0.
|
| 56 |
-
| 0.
|
| 57 |
-
| 0.
|
| 58 |
-
| 0.
|
| 59 |
-
| 0.
|
| 60 |
-
| 0.
|
| 61 |
-
| 0.
|
| 62 |
-
| 0.
|
| 63 |
-
| 0.
|
| 64 |
-
| 0.
|
| 65 |
-
| 0.
|
| 66 |
-
| 0.
|
| 67 |
-
| 0.
|
| 68 |
-
| 0.
|
| 69 |
|
| 70 |
|
| 71 |
### Framework versions
|
|
|
|
| 14 |
|
| 15 |
This model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.
|
| 16 |
It achieves the following results on the evaluation set:
|
| 17 |
+
- Loss: 0.1862
|
| 18 |
|
| 19 |
## Model description
|
| 20 |
|
|
|
|
| 33 |
### Training hyperparameters
|
| 34 |
|
| 35 |
The following hyperparameters were used during training:
|
| 36 |
+
- learning_rate: 0.0003
|
| 37 |
- train_batch_size: 64
|
| 38 |
- eval_batch_size: 64
|
| 39 |
- seed: 42
|
|
|
|
| 45 |
|
| 46 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 47 |
|:-------------:|:------:|:----:|:---------------:|
|
| 48 |
+
| 3.3162 | 0.0135 | 200 | 3.1383 |
|
| 49 |
+
| 0.8013 | 0.0270 | 400 | 0.7547 |
|
| 50 |
+
| 0.4088 | 0.0404 | 600 | 0.4044 |
|
| 51 |
+
| 0.3265 | 0.0539 | 800 | 0.3272 |
|
| 52 |
+
| 0.2864 | 0.0674 | 1000 | 0.2859 |
|
| 53 |
+
| 0.2629 | 0.0809 | 1200 | 0.2619 |
|
| 54 |
+
| 0.2403 | 0.0944 | 1400 | 0.2424 |
|
| 55 |
+
| 0.2472 | 0.1079 | 1600 | 0.2468 |
|
| 56 |
+
| 0.2213 | 0.1213 | 1800 | 0.2201 |
|
| 57 |
+
| 0.2111 | 0.1348 | 2000 | 0.2126 |
|
| 58 |
+
| 0.2040 | 0.1483 | 2200 | 0.2070 |
|
| 59 |
+
| 0.2141 | 0.1618 | 2400 | 0.2089 |
|
| 60 |
+
| 0.1972 | 0.1753 | 2600 | 0.1989 |
|
| 61 |
+
| 0.1940 | 0.1887 | 2800 | 0.1959 |
|
| 62 |
+
| 0.1902 | 0.2022 | 3000 | 0.1934 |
|
| 63 |
+
| 0.1898 | 0.2157 | 3200 | 0.1916 |
|
| 64 |
+
| 0.1878 | 0.2292 | 3400 | 0.1901 |
|
| 65 |
+
| 0.1874 | 0.2427 | 3600 | 0.1888 |
|
| 66 |
+
| 0.1860 | 0.2562 | 3800 | 0.1876 |
|
| 67 |
+
| 0.1863 | 0.2696 | 4000 | 0.1866 |
|
| 68 |
+
| 0.1849 | 0.2761 | 4096 | 0.1862 |
|
| 69 |
|
| 70 |
|
| 71 |
### Framework versions
|
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"activation": "
|
| 3 |
"architectures": [
|
| 4 |
"TinyLlamaForCausalLM"
|
| 5 |
],
|
|
|
|
| 1 |
{
|
| 2 |
+
"activation": "silu",
|
| 3 |
"architectures": [
|
| 4 |
"TinyLlamaForCausalLM"
|
| 5 |
],
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4011496
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:59507337f6067a80b43664e709b7c20c03e78f5deeb583a8dc3f447480ecc287
|
| 3 |
size 4011496
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4856
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:90c2469c0f3298da74de93055356d686cfe87200dcf88f8003df31a102ba07f2
|
| 3 |
size 4856
|
training_log.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|