Instructions to use w-ahmad/8M-ACT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use w-ahmad/8M-ACT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="w-ahmad/8M-ACT")# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("w-ahmad/8M-ACT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use w-ahmad/8M-ACT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "w-ahmad/8M-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/8M-ACT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/w-ahmad/8M-ACT
- SGLang
How to use w-ahmad/8M-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/8M-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/8M-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/8M-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/8M-ACT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use w-ahmad/8M-ACT with Docker Model Runner:
docker model run hf.co/w-ahmad/8M-ACT
Model save
Browse files- README.md +13 -13
- training_log.jsonl +2 -2
README.md
CHANGED
|
@@ -3,18 +3,18 @@ library_name: transformers
|
|
| 3 |
tags:
|
| 4 |
- generated_from_trainer
|
| 5 |
model-index:
|
| 6 |
-
- name:
|
| 7 |
results: []
|
| 8 |
---
|
| 9 |
|
| 10 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 11 |
should probably proofread and complete it, then remove this comment. -->
|
| 12 |
|
| 13 |
-
#
|
| 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,16 +45,16 @@ The following hyperparameters were used during training:
|
|
| 45 |
|
| 46 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 47 |
|:-------------:|:------:|:----:|:---------------:|
|
| 48 |
-
|
|
| 49 |
-
|
|
| 50 |
-
| 0.
|
| 51 |
-
| 0.
|
| 52 |
-
| 0.
|
| 53 |
-
| 0.
|
| 54 |
-
| 0.
|
| 55 |
-
| 0.
|
| 56 |
-
| 0.
|
| 57 |
-
| 0.
|
| 58 |
|
| 59 |
|
| 60 |
### Framework versions
|
|
|
|
| 3 |
tags:
|
| 4 |
- generated_from_trainer
|
| 5 |
model-index:
|
| 6 |
+
- name: 8M-ACT
|
| 7 |
results: []
|
| 8 |
---
|
| 9 |
|
| 10 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 11 |
should probably proofread and complete it, then remove this comment. -->
|
| 12 |
|
| 13 |
+
# 8M-ACT
|
| 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.2521
|
| 18 |
|
| 19 |
## Model description
|
| 20 |
|
|
|
|
| 45 |
|
| 46 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 47 |
|:-------------:|:------:|:----:|:---------------:|
|
| 48 |
+
| 4.3392 | 0.0135 | 200 | 4.1956 |
|
| 49 |
+
| 1.8409 | 0.0270 | 400 | 1.7534 |
|
| 50 |
+
| 0.6713 | 0.0404 | 600 | 0.6773 |
|
| 51 |
+
| 0.4330 | 0.0539 | 800 | 0.4251 |
|
| 52 |
+
| 0.3502 | 0.0674 | 1000 | 0.3474 |
|
| 53 |
+
| 0.3133 | 0.0809 | 1200 | 0.3119 |
|
| 54 |
+
| 0.2853 | 0.0944 | 1400 | 0.2870 |
|
| 55 |
+
| 0.3090 | 0.1079 | 1600 | 0.3029 |
|
| 56 |
+
| 0.2625 | 0.1213 | 1800 | 0.2610 |
|
| 57 |
+
| 0.2505 | 0.1348 | 2000 | 0.2521 |
|
| 58 |
|
| 59 |
|
| 60 |
### Framework versions
|
training_log.jsonl
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:b33cf4315ef7a3415059482a4afdaee25c9dec96554db08ac4a87320125b4897
|
| 3 |
+
size 22387227
|