Text Generation
Transformers
Safetensors
English
llama
commonsense-reasoning
winoGrande
fine-tuned
reasoning
text-generation-inference
Instructions to use Yuvrajxms09/Monad with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Yuvrajxms09/Monad with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Yuvrajxms09/Monad")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Yuvrajxms09/Monad") model = AutoModelForCausalLM.from_pretrained("Yuvrajxms09/Monad", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Yuvrajxms09/Monad with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Yuvrajxms09/Monad" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Yuvrajxms09/Monad", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Yuvrajxms09/Monad
- SGLang
How to use Yuvrajxms09/Monad 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 "Yuvrajxms09/Monad" \ --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": "Yuvrajxms09/Monad", "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 "Yuvrajxms09/Monad" \ --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": "Yuvrajxms09/Monad", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Yuvrajxms09/Monad with Docker Model Runner:
docker model run hf.co/Yuvrajxms09/Monad
|
Download README.md from Yuvrajxms09/Monad: direct link, hf CLI and curl.
- Browser
- Download file 1.8 kB
-
https://huggingface.co/Yuvrajxms09/Monad/resolve/main/README.md
- Command line
-
hf download hf://Yuvrajxms09/Monad/README.md
-
curl -L -o README.md https://huggingface.co/Yuvrajxms09/Monad/resolve/main/README.md
1.8 kB
metadata
language: en
license: apache-2.0
library_name: transformers
tags:
- commonsense-reasoning
- winoGrande
- fine-tuned
- llama
- reasoning
datasets:
- allenai/winogrande
metrics:
- accuracy
- loss
base_model:
- PleIAs/Monad
Model Details
Model Description
The model has been trained on the WinoGrande dataset which tests the ability to resolve pronouns and make logical inferences in everyday scenarios.
Model Sources
- Base Model: https://huggingface.co/PleIAs/Monad
Training Data
Dataset: WinoGrande (allenai/winogrande)
- Size: 9,248 training examples, 1,267 validation examples
- Task: Commonsense reasoning with pronoun resolution
- Format: Multiple choice questions requiring logical reasoning
Training Hyperparameters
| Epochs | Batch Size | Learning Rate | Warmup Ratio | Warmup Steps | Weight Decay | Max Gradient Norm | Evaluation Steps | Save Steps | Early Stopping Patience |
|---|---|---|---|---|---|---|---|---|---|
| 5 | 16 | 1e-05 | 0.05 | 144 | 0.01 | 1.0 | 150 | 150 | 7 |
Training Results
| Metric | Value |
|---|---|
| Final Training Loss | 0.9143 |
| Training Time | 1,526.9s |
Validation Performance
Validation loss stabilized between 0.83-0.86 throughout the training
Summary
The model achieved strong convergence during training:
- Final training loss: 0.9143
- Evaluation loss: ~0.834 (final checkpoint)
- Training completed: All 5 epochs with early stopping monitoring
Compute Infrastructure
Hardware
- GPU: Single NVIDIA A10G (24GB VRAM)
- Platform: Modal.com