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 +6 -5
- 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:
|
| 18 |
|
| 19 |
## Model description
|
| 20 |
|
|
@@ -41,13 +41,14 @@ 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
|
| 49 |
-
|:-------------:|:-----:|:----:|:---------------:|
|
| 50 |
-
|
|
|
|
|
| 51 |
|
| 52 |
|
| 53 |
### 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.4482
|
| 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: 2
|
| 45 |
|
| 46 |
### Training results
|
| 47 |
|
| 48 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
| 49 |
+
|:-------------:|:------:|:----:|:---------------:|
|
| 50 |
+
| 0.4516 | 0.9991 | 843 | 0.4501 |
|
| 51 |
+
| 0.449 | 1.9982 | 1686 | 0.4482 |
|
| 52 |
|
| 53 |
|
| 54 |
### 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:ec786a2bd3c52ea730c8c6585c0102fea8fd3ef136d72d90621b8602a598e516
|
| 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:a7d1ba9355366abb060b29568c318dd324253f6dddc9483b7321adfbe76437b1
|
| 3 |
size 5176
|