Text Generation
Transformers
Safetensors
English
pretrained-from-scratch
causal-lm
gpt
rope
swiglu
grouped-query-attention
Instructions to use Dikshan1234/LLMPretrain with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Dikshan1234/LLMPretrain with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Dikshan1234/LLMPretrain")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Dikshan1234/LLMPretrain", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Dikshan1234/LLMPretrain with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Dikshan1234/LLMPretrain" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Dikshan1234/LLMPretrain", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Dikshan1234/LLMPretrain
- SGLang
How to use Dikshan1234/LLMPretrain 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 "Dikshan1234/LLMPretrain" \ --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": "Dikshan1234/LLMPretrain", "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 "Dikshan1234/LLMPretrain" \ --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": "Dikshan1234/LLMPretrain", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Dikshan1234/LLMPretrain with Docker Model Runner:
docker model run hf.co/Dikshan1234/LLMPretrain
Update model card
Browse files
README.md
CHANGED
|
@@ -51,8 +51,8 @@ Parameter split: **41,943,040** embedding
|
|
| 51 |
|
| 52 |
| | |
|
| 53 |
|---|---|
|
| 54 |
-
| Tokens seen |
|
| 55 |
-
| Steps | 78,
|
| 56 |
| Schedule | warmup-stable-decay (WSD) |
|
| 57 |
| Optimizer | fused AdamW, betas (0.9, 0.95), wd 0.1 on 2D params only |
|
| 58 |
| Precision | bf16 autocast, fp32 master weights |
|
|
@@ -68,8 +68,8 @@ directly comparable.
|
|
| 68 |
| Metric | This model | GPT-2 124M |
|
| 69 |
|---|---|---|
|
| 70 |
| Parameters | 351,650,304 | 124,439,808 |
|
| 71 |
-
| Validation loss | 1.
|
| 72 |
-
| **Bits per byte** | **0.
|
| 73 |
| HellaSwag (0-shot, len-norm) | _pending_ | 29.55% |
|
| 74 |
|
| 75 |
|
|
@@ -113,7 +113,7 @@ and are short enough to read.
|
|
| 113 |
## Sample generations
|
| 114 |
|
| 115 |
```
|
| 116 |
-
===== step
|
| 117 |
|
| 118 |
--- [greedy] 'Once upon a time'
|
| 119 |
Once upon a time, the world was a very different place.
|
|
@@ -132,53 +132,50 @@ The world was a very different place.
|
|
| 132 |
The world
|
| 133 |
|
| 134 |
--- [t=0.8] 'Once upon a time'
|
| 135 |
-
Once upon a time
|
| 136 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 137 |
|
| 138 |
--- [greedy] 'The capital of France is'
|
| 139 |
-
The capital of France is the capital of the
|
| 140 |
-
The
|
| 141 |
-
The
|
| 142 |
-
The capital of the United States is the capital of the country.
|
| 143 |
-
The capital of the United Kingdom is the capital of the country.
|
| 144 |
-
The capital of the United States is the capital of the country.
|
| 145 |
-
The capital of the United Kingdom is the capital of the country.
|
| 146 |
-
The capital of the United States is the capital of the country.
|
| 147 |
-
The capital of the United Kingdom is the capital of the country.
|
| 148 |
-
The
|
| 149 |
|
| 150 |
--- [t=0.8] 'The capital of France is'
|
| 151 |
-
The capital of France is divided into
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
|
| 159 |
--- [greedy] 'In 1969, humans first'
|
| 160 |
-
In 1969, humans first began to use
|
| 161 |
-
The
|
| 162 |
-
The
|
| 163 |
-
The
|
| 164 |
-
The
|
| 165 |
-
The first fireplace was built in the United States in the late 1700s.
|
| 166 |
-
The first fireplace was built in the United States
|
| 167 |
|
| 168 |
--- [t=0.8] 'In 1969, humans first'
|
| 169 |
-
In 1969, humans first
|
|
|
|
| 170 |
|
| 171 |
--- [greedy] 'The three states of matter are'
|
| 172 |
-
The three states of matter are the same
|
| 173 |
-
The three states of matter are:
|
| 174 |
-
- Solids: the solid state of matter.
|
| 175 |
-
- Liquids: the liquid state of matter.
|
| 176 |
-
- Gases: the gas state of matter.
|
| 177 |
-
The three states of matter are:
|
| 178 |
-
- Solids: the solid state of matter.
|
| 179 |
-
- Liquids: the liquid state of matter.
|
| 180 |
-
- Gases: the gas state of matter.
|
| 181 |
-
The three sta
|
| 182 |
```
|
| 183 |
|
| 184 |
## Limitations
|
|
|
|
| 51 |
|
| 52 |
| | |
|
| 53 |
|---|---|
|
| 54 |
+
| Tokens seen | 41,158,232,064 |
|
| 55 |
+
| Steps | 78,500 |
|
| 56 |
| Schedule | warmup-stable-decay (WSD) |
|
| 57 |
| Optimizer | fused AdamW, betas (0.9, 0.95), wd 0.1 on 2D params only |
|
| 58 |
| Precision | bf16 autocast, fp32 master weights |
|
|
|
|
| 68 |
| Metric | This model | GPT-2 124M |
|
| 69 |
|---|---|---|
|
| 70 |
| Parameters | 351,650,304 | 124,439,808 |
|
| 71 |
+
| Validation loss | 1.4668 | — |
|
| 72 |
+
| **Bits per byte** | **0.4970** | — |
|
| 73 |
| HellaSwag (0-shot, len-norm) | _pending_ | 29.55% |
|
| 74 |
|
| 75 |
|
|
|
|
| 113 |
## Sample generations
|
| 114 |
|
| 115 |
```
|
| 116 |
+
===== step 78500 =====
|
| 117 |
|
| 118 |
--- [greedy] 'Once upon a time'
|
| 119 |
Once upon a time, the world was a very different place.
|
|
|
|
| 132 |
The world
|
| 133 |
|
| 134 |
--- [t=0.8] 'Once upon a time'
|
| 135 |
+
Once upon a time in the future, our company will issue a dividend, as well as a share dividend, which could dilute our current shareholders’ equity.
|
| 136 |
+
|
| 137 |
+
Our current directors and officers, and any persons who acquire our common shares, may have a conflict of interest.
|
| 138 |
+
|
| 139 |
+
Our current directors and officers, and any persons who acquire our common shares, may become involved in a transaction with our company. Mr. Marras and Mr. Vecchio, our officers and directors, have a current fiduciary to our shareholders that will not permit any transaction that would involve a conflict of interest.
|
| 140 |
+
|
| 141 |
+
We
|
| 142 |
|
| 143 |
--- [greedy] 'The capital of France is'
|
| 144 |
+
The capital of France is divided into two parts: the capital of the French Republic and the capital of the French State. The French Republic is the capital of France and the French State is the capital of France.
|
| 145 |
+
The French Republic is the largest country in the world, with a population of approximately 1.3 billion people. It is the second largest country in the world, after the United States, with a population of approximately 1.3 billion people. The French Republic is a constitutional monarchy, with a parliamentary system of government. The French Republic is a constitutional monarchy with a parliamentary system of government.
|
| 146 |
+
The French State is
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
|
| 148 |
--- [t=0.8] 'The capital of France is'
|
| 149 |
+
The capital of France is divided into public and private reserves.
|
| 150 |
+
French banks are authorized to create and issue shares and, with the prior approval of the CNL, offer financial products. In order to hold a share with a market value above the minimum requirement, the CNL must, among other things,
|
| 151 |
+
|
| 152 |
+
•
|
| 153 |
+
|
| 154 |
+
control the bank’s directors;
|
| 155 |
+
|
| 156 |
+
•
|
| 157 |
+
|
| 158 |
+
control the board of directors; and
|
| 159 |
+
|
| 160 |
+
•
|
| 161 |
+
|
| 162 |
+
must be able to obtain the approval of the CNL.
|
| 163 |
+
|
| 164 |
+
In addition, French bank regulations provide that the CNL must, among other things, make available to the
|
| 165 |
|
| 166 |
--- [greedy] 'In 1969, humans first'
|
| 167 |
+
In 1969, humans first began to use the term “motorcycle” to describe a motor vehicle. The term “motorcycle” was first used in the United States in the early 1970s.
|
| 168 |
+
The term “motorcycle” was first used in the United States in the early 1970s.
|
| 169 |
+
The term “motorcycle” was first used in the United States in the early 1970s.
|
| 170 |
+
The term “motorcycle” was first used in the United States in the early 1970s.
|
| 171 |
+
The term “motorcycle” was first used in the United States in the early 1970s.
|
|
|
|
|
|
|
| 172 |
|
| 173 |
--- [t=0.8] 'In 1969, humans first'
|
| 174 |
+
In 1969, humans first started to be used to produce ethanol, a simple sugar, in large amounts. A decade later the first domestic factory opened to produce it and in 2012 the first domestic factory was closed.
|
| 175 |
+
Ethanol has the most energy per unit of the other main ingredients of the food chain. It generates the most greenhouse gases and is the leading cause of global warming, which is one of the primary reasons why the federal government has adopted the Renewable Fuel Standard of the federal government to promote the production of ethanol in the United States. According to the Renewable Fuel Standard, in 2015 the volume of renewable fuel produced on
|
| 176 |
|
| 177 |
--- [greedy] 'The three states of matter are'
|
| 178 |
+
The three states of matter are distinguished by the way in which the atoms of the same element are arranged in space. The atoms of the same element are held together by the same force, called attraction. The atoms of different elements are held apart by different forces, cal
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 179 |
```
|
| 180 |
|
| 181 |
## Limitations
|