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- README.md +22 -22
- config.json +1 -1
- model.safetensors +1 -1
- training_args.bin +1 -1
- training_log.jsonl +0 -0
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 |
|
|
@@ -45,27 +45,27 @@ The following hyperparameters were used during training:
|
|
| 45 |
|
| 46 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 47 |
|:-------------:|:------:|:----:|:---------------:|
|
| 48 |
-
| 1.
|
| 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.0753
|
| 18 |
|
| 19 |
## Model description
|
| 20 |
|
|
|
|
| 45 |
|
| 46 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 47 |
|:-------------:|:------:|:----:|:---------------:|
|
| 48 |
+
| 1.6407 | 0.0135 | 200 | 1.4343 |
|
| 49 |
+
| 0.2608 | 0.0270 | 400 | 0.2564 |
|
| 50 |
+
| 0.1712 | 0.0404 | 600 | 0.1649 |
|
| 51 |
+
| 0.1275 | 0.0539 | 800 | 0.1277 |
|
| 52 |
+
| 0.1260 | 0.0674 | 1000 | 0.1178 |
|
| 53 |
+
| 0.1029 | 0.0809 | 1200 | 0.1025 |
|
| 54 |
+
| 0.0961 | 0.0944 | 1400 | 0.0965 |
|
| 55 |
+
| 0.1125 | 0.1079 | 1600 | 0.1061 |
|
| 56 |
+
| 0.0891 | 0.1213 | 1800 | 0.0886 |
|
| 57 |
+
| 0.0847 | 0.1348 | 2000 | 0.0851 |
|
| 58 |
+
| 0.0824 | 0.1483 | 2200 | 0.0831 |
|
| 59 |
+
| 0.0841 | 0.1618 | 2400 | 0.0828 |
|
| 60 |
+
| 0.0797 | 0.1753 | 2600 | 0.0801 |
|
| 61 |
+
| 0.0787 | 0.1887 | 2800 | 0.0791 |
|
| 62 |
+
| 0.0772 | 0.2022 | 3000 | 0.0781 |
|
| 63 |
+
| 0.0770 | 0.2157 | 3200 | 0.0775 |
|
| 64 |
+
| 0.0763 | 0.2292 | 3400 | 0.0769 |
|
| 65 |
+
| 0.0761 | 0.2427 | 3600 | 0.0764 |
|
| 66 |
+
| 0.0755 | 0.2562 | 3800 | 0.0759 |
|
| 67 |
+
| 0.0755 | 0.2696 | 4000 | 0.0755 |
|
| 68 |
+
| 0.0750 | 0.2761 | 4096 | 0.0753 |
|
| 69 |
|
| 70 |
|
| 71 |
### Framework versions
|
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"activation": "
|
| 3 |
"architectures": [
|
| 4 |
"TinyLlamaForCausalLM"
|
| 5 |
],
|
|
|
|
| 1 |
{
|
| 2 |
+
"activation": "gelu",
|
| 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:e41744cf69ceba537aa4065b08b4c0d17890e3277555fac409a90551bce0ab80
|
| 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:51de4cb4b05849f4f3158b0962940d33e0f83f023656fcb707723ff7fd2c765e
|
| 3 |
size 4856
|
training_log.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|