Text Generation
Transformers
Safetensors
English
pretrained-from-scratch
causal-lm
gpt
rope
swiglu
grouped-query-attention
Run this model with HF Jobs
Run Dikshan1234/LLMPretrain on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/Dikshan1234/LLMPretrain. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Dikshan1234/LLMPretrain on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Dikshan1234/LLMPretrain. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Dikshan1234/LLMPretrain. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
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 latest checkpoint
Browse filesFiles changed (3)
50 unmodified lines51525354555657589 unmodified lines686970717273747537 unmodified lines11311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018150 unmodified lines| | ||---|---|| Tokens seen | 41,158,232,064 || Steps | 78,500 || Schedule | warmup-stable-decay (WSD) || Optimizer | fused AdamW, betas (0.9, 0.95), wd 0.1 on 2D params only || Precision | bf16 autocast, fp32 master weights |9 unmodified lines| Metric | This model | GPT-2 124M ||---|---|---|| Parameters | 351,650,304 | 124,439,808 || Validation loss | 1.4668 | — || **Bits per byte** | **0.4970** | — || HellaSwag (0-shot, len-norm) | _pending_ | 29.55% |37 unmodified lines## Sample generations```===== step 78500 =====--- [greedy] 'Once upon a time'Once upon a time, the world was a very different place.The world was a very different place.The world was a very different place.The world was a very different place.The world was a very different place.The world was a very different place.The world was a very different place.The world was a very different place.The world was a very different place.The world was a very different place.The world was a very different place.The world was a very different place.The world was a very different place.The world--- [t=0.8] 'Once upon a time'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.Our current directors and officers, and any persons who acquire our common shares, may have a conflict of interest.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.We--- [greedy] 'The capital of France is'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.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.The French State is--- [t=0.8] 'The capital of France is'The capital of France is divided into public and private reserves.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,•control the bank’s directors;•control the board of directors; and•must be able to obtain the approval of the CNL.In addition, French bank regulations provide that the CNL must, among other things, make available to the--- [greedy] 'In 1969, humans first'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.The term “motorcycle” was first used in the United States in the early 1970s.The term “motorcycle” was first used in the United States in the early 1970s.The term “motorcycle” was first used in the United States in the early 1970s.The term “motorcycle” was first used in the United States in the early 1970s.--- [t=0.8] 'In 1969, humans first'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.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--- [greedy] 'The three states of matter are'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```## Limitations50 unmodified lines51525354555657589 unmodified lines686970717273747537 unmodified lines11311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416550 unmodified lines| | ||---|---|| Tokens seen | 41,420,376,064 || Steps | 79,000 || Schedule | warmup-stable-decay (WSD) || Optimizer | fused AdamW, betas (0.9, 0.95), wd 0.1 on 2D params only || Precision | bf16 autocast, fp32 master weights |9 unmodified lines| Metric | This model | GPT-2 124M ||---|---|---|| Parameters | 351,650,304 | 124,439,808 || Validation loss | 1.5292 | — || **Bits per byte** | **0.5182** | — || HellaSwag (0-shot, len-norm) | _pending_ | 29.55% |37 unmodified lines## Sample generations```===== step 79000 =====--- [greedy] 'Once upon a time'Once upon a time, the world was a very different place. The world was a very different place. The world was a very different place. The world was a very different place.The world was a very different place. The world was a very different place.The world was a very different place. The world was a very different place.The world was a very different place. The world was a very different place.The world was a very different place. The world was a very different place.The world was a very different place. The world was a very different place.The--- [t=0.8] 'Once upon a time'Once upon a time, I wondered if there was a way to help people learn so they could move towards a better life. I don’t know if I could say that for every single person there is one person that could become what I’m talking about. I think that each person has their own unique and unique learning style, and that each person has a unique way to learn. So how do you help people learn?Well, the first thing I will say is that it’s normal for people at this level to not be very good or very good at learning. Sometimes they will be good at learning--- [greedy] 'The capital of France is'The capital of France is the largest in the world, with a population of over 1.3 billion people. The capital city of Paris is the most populous city in the world, with a population of over 1.3 billion people.The capital of the United Kingdom is London. The capital city of the United Kingdom is London.The capital of the Republic of Ireland is Dublin. The capital city of the Republic of Ireland is Dublin.The capital of the Republic of Malta is Valletta. The capital city of Malta is Valletta.The capital of the Republic of the Philippines is--- [t=0.8] 'The capital of France is'The capital of France is called the French crown.The French crown is the highest royal title in France. The French monarchy has been ruling France since the 11th century.- Queen Dowager of EnglandQueen Elizabeth is the second wife of King Henry VII of England.Queen Elizabeth was the only daughter of Henry VII of England. Queen Elizabeth is the queen of England.Queen Elizabeth was the only daughter of Henry VII of England.Queen Elizabeth was the only daughter of Henry VII of England.Queen Elizabeth was the only daughter of Henry VII of England.- Queen Elizabeth--- [greedy] 'In 1969, humans first'In 1969, humans first began to use the term “male” to describe the male sex. The term “female” was first used in the early 20th century.The word “female” is derived from the Latin word “female” which means “little” or “little” and “female” is derived from the Greek word “female” which means “little” or “little” and “female” is derived from the Latin word “female” which means “little” or “little” and “female” is derived from the--- [t=0.8] 'In 1969, humans first'In 1969, humans first discovered the use of the word “tremble” in reference to the extreme nature of an earthquake. A term that has been used again and again in the last 60 years – as well as many other words from the human experience – to describe a sudden, unexpected, or extreme shaking or movement of objects on the ground or in the air is called tremble.This is a very interesting and useful concept. However, the term “tremble” is not an accurate description of the actual situation or situation. It is simply the subjective experience of the “tremble” which an individual--- [greedy] 'The three states of matter are'The three states of matter are distinguished by their ability to conduct electricity.- 1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.--- [t=0.8] 'The three states of matter are'The three states of matter are distinguished according to their density values, and we find that the density of the state of matter can be determined without the aid of a balance. The density of a single atom (the density of t```## Limitations
123456739 unmodified lines474849505152535455{"checkpoint": "D:\\MyMade\\AI\\LLMPretrain\\logs\\_push_f350_wide_latest.pt","step": 78500,"tokens_seen": 41158232064,"best": {"val_loss": 1.4400505989789962,"val_bpb": 0.4879742670478707,39 unmodified lines},"dataset": "fineweb-edu","eval": {"val_loss": 1.4667795181274415,"val_ppl": 4.33525103799302,"val_bpb": 0.4970316048523145,"batches": 40},"tokenizer_files": [123456739 unmodified lines474849505152535455{"checkpoint": "D:\\MyMade\\AI\\LLMPretrain\\logs\\_push_f350_wide_latest.pt","step": 79000,"tokens_seen": 41420376064,"best": {"val_loss": 1.4400505989789962,"val_bpb": 0.4879742670478707,39 unmodified lines},"dataset": "fineweb-edu","eval": {"val_loss": 1.5291585206985474,"val_ppl": 4.614292356671291,"val_bpb": 0.5181692982641949,"batches": 40},"tokenizer_files": [
123version https://git-lfs.github.com/spec/v1oid sha256:3c4b6d9fd792d817db4f2ce62e5be211c2dc51491785d6d7d1c8a22b913a93bdsize 1406621448123version https://git-lfs.github.com/spec/v1oid sha256:965063928ad1574444c5d8395f91a924ad6d67c6603f4392392446eb300cdde7size 1406621448
latest/README.md+37-53
latest/export_info.json+5-5
latest/model.safetensors+1-1