Instructions to use nagrajn/TinyLinuxDSLM81M_EXTFULL_Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nagrajn/TinyLinuxDSLM81M_EXTFULL_Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nagrajn/TinyLinuxDSLM81M_EXTFULL_Instruct")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("nagrajn/TinyLinuxDSLM81M_EXTFULL_Instruct") model = AutoModelForCausalLM.from_pretrained("nagrajn/TinyLinuxDSLM81M_EXTFULL_Instruct", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nagrajn/TinyLinuxDSLM81M_EXTFULL_Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nagrajn/TinyLinuxDSLM81M_EXTFULL_Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nagrajn/TinyLinuxDSLM81M_EXTFULL_Instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/nagrajn/TinyLinuxDSLM81M_EXTFULL_Instruct
- SGLang
How to use nagrajn/TinyLinuxDSLM81M_EXTFULL_Instruct 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 "nagrajn/TinyLinuxDSLM81M_EXTFULL_Instruct" \ --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": "nagrajn/TinyLinuxDSLM81M_EXTFULL_Instruct", "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 "nagrajn/TinyLinuxDSLM81M_EXTFULL_Instruct" \ --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": "nagrajn/TinyLinuxDSLM81M_EXTFULL_Instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use nagrajn/TinyLinuxDSLM81M_EXTFULL_Instruct with Docker Model Runner:
docker model run hf.co/nagrajn/TinyLinuxDSLM81M_EXTFULL_Instruct
End of training
Browse files- README.md +5 -4
- model.safetensors +1 -1
- training_args.bin +1 -1
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 [nagrajn/TinyLinuxDSLM81M_EXTFULL](https://huggingface.co/nagrajn/TinyLinuxDSLM81M_EXTFULL) on an unknown dataset.
|
| 16 |
It achieves the following results on the evaluation set:
|
| 17 |
-
- Loss: 0.
|
| 18 |
|
| 19 |
## Model description
|
| 20 |
|
|
@@ -41,14 +41,15 @@ The following hyperparameters were used during training:
|
|
| 41 |
- total_train_batch_size: 32
|
| 42 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 43 |
- lr_scheduler_type: linear
|
| 44 |
-
- num_epochs:
|
| 45 |
|
| 46 |
### Training results
|
| 47 |
|
| 48 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 49 |
|:-------------:|:------:|:----:|:---------------:|
|
| 50 |
-
| 0.
|
| 51 |
-
| 0.
|
|
|
|
| 52 |
|
| 53 |
|
| 54 |
### Framework versions
|
|
|
|
| 14 |
|
| 15 |
This model is a fine-tuned version of [nagrajn/TinyLinuxDSLM81M_EXTFULL](https://huggingface.co/nagrajn/TinyLinuxDSLM81M_EXTFULL) on an unknown dataset.
|
| 16 |
It achieves the following results on the evaluation set:
|
| 17 |
+
- Loss: 0.5143
|
| 18 |
|
| 19 |
## Model description
|
| 20 |
|
|
|
|
| 41 |
- total_train_batch_size: 32
|
| 42 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 43 |
- lr_scheduler_type: linear
|
| 44 |
+
- num_epochs: 3
|
| 45 |
|
| 46 |
### Training results
|
| 47 |
|
| 48 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 49 |
|:-------------:|:------:|:----:|:---------------:|
|
| 50 |
+
| 0.9194 | 0.9991 | 843 | 0.8285 |
|
| 51 |
+
| 0.7235 | 1.9994 | 1687 | 0.5914 |
|
| 52 |
+
| 0.6104 | 2.9973 | 2529 | 0.5143 |
|
| 53 |
|
| 54 |
|
| 55 |
### Framework versions
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 327670216
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6eb12eb0bbfb1a5ebd777ad343adcdb139035afbbb0ac8aa69118317f6fa2a9b
|
| 3 |
size 327670216
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5176
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d22b2a4773fe1cfe94ff90e40751a696f78f5721bde4b51badf6daf47adf3b33
|
| 3 |
size 5176
|