Text Generation
Transformers
Safetensors
opt
axolotl
Generated from Trainer
conversational
text-generation-inference
Instructions to use SystemAdmin123/opt-125m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SystemAdmin123/opt-125m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SystemAdmin123/opt-125m") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SystemAdmin123/opt-125m") model = AutoModelForCausalLM.from_pretrained("SystemAdmin123/opt-125m") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use SystemAdmin123/opt-125m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SystemAdmin123/opt-125m" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SystemAdmin123/opt-125m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SystemAdmin123/opt-125m
- SGLang
How to use SystemAdmin123/opt-125m 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 "SystemAdmin123/opt-125m" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SystemAdmin123/opt-125m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "SystemAdmin123/opt-125m" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SystemAdmin123/opt-125m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SystemAdmin123/opt-125m with Docker Model Runner:
docker model run hf.co/SystemAdmin123/opt-125m
End of training
Browse files
README.md
CHANGED
|
@@ -37,7 +37,7 @@ datasets:
|
|
| 37 |
system_prompt: ''
|
| 38 |
device_map: auto
|
| 39 |
eval_sample_packing: false
|
| 40 |
-
eval_steps:
|
| 41 |
flash_attention: true
|
| 42 |
gradient_checkpointing: true
|
| 43 |
group_by_length: true
|
|
@@ -55,11 +55,13 @@ output_dir: /root/.sn56/axolotl/tmp/opt-125m
|
|
| 55 |
pad_to_sequence_len: true
|
| 56 |
resize_token_embeddings_to_32x: false
|
| 57 |
sample_packing: true
|
| 58 |
-
save_steps:
|
| 59 |
save_total_limit: 1
|
| 60 |
sequence_len: 2048
|
| 61 |
tokenizer_type: GPT2TokenizerFast
|
| 62 |
torch_dtype: bf16
|
|
|
|
|
|
|
| 63 |
trust_remote_code: true
|
| 64 |
val_set_size: 0.1
|
| 65 |
wandb_entity: ''
|
|
@@ -77,6 +79,8 @@ warmup_ratio: 0.05
|
|
| 77 |
# opt-125m
|
| 78 |
|
| 79 |
This model is a fine-tuned version of [facebook/opt-125m](https://huggingface.co/facebook/opt-125m) on the argilla/databricks-dolly-15k-curated-en dataset.
|
|
|
|
|
|
|
| 80 |
|
| 81 |
## Model description
|
| 82 |
|
|
@@ -110,9 +114,14 @@ The following hyperparameters were used during training:
|
|
| 110 |
|
| 111 |
### Training results
|
| 112 |
|
| 113 |
-
| Training Loss | Epoch
|
| 114 |
-
|:-------------:|:------:|:----:|:---------------:|
|
| 115 |
-
| No log | 0.1667
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 116 |
|
| 117 |
|
| 118 |
### Framework versions
|
|
|
|
| 37 |
system_prompt: ''
|
| 38 |
device_map: auto
|
| 39 |
eval_sample_packing: false
|
| 40 |
+
eval_steps: 20
|
| 41 |
flash_attention: true
|
| 42 |
gradient_checkpointing: true
|
| 43 |
group_by_length: true
|
|
|
|
| 55 |
pad_to_sequence_len: true
|
| 56 |
resize_token_embeddings_to_32x: false
|
| 57 |
sample_packing: true
|
| 58 |
+
save_steps: 20
|
| 59 |
save_total_limit: 1
|
| 60 |
sequence_len: 2048
|
| 61 |
tokenizer_type: GPT2TokenizerFast
|
| 62 |
torch_dtype: bf16
|
| 63 |
+
training_args_kwargs:
|
| 64 |
+
hub_private_repo: true
|
| 65 |
trust_remote_code: true
|
| 66 |
val_set_size: 0.1
|
| 67 |
wandb_entity: ''
|
|
|
|
| 79 |
# opt-125m
|
| 80 |
|
| 81 |
This model is a fine-tuned version of [facebook/opt-125m](https://huggingface.co/facebook/opt-125m) on the argilla/databricks-dolly-15k-curated-en dataset.
|
| 82 |
+
It achieves the following results on the evaluation set:
|
| 83 |
+
- Loss: 3.2130
|
| 84 |
|
| 85 |
## Model description
|
| 86 |
|
|
|
|
| 114 |
|
| 115 |
### Training results
|
| 116 |
|
| 117 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
| 118 |
+
|:-------------:|:-------:|:----:|:---------------:|
|
| 119 |
+
| No log | 0.1667 | 1 | 3.2664 |
|
| 120 |
+
| 5.5113 | 3.3333 | 20 | 3.2161 |
|
| 121 |
+
| 5.0084 | 6.6667 | 40 | 3.0989 |
|
| 122 |
+
| 4.6384 | 10.0 | 60 | 3.1967 |
|
| 123 |
+
| 4.484 | 13.3333 | 80 | 3.2199 |
|
| 124 |
+
| 4.4609 | 16.6667 | 100 | 3.2130 |
|
| 125 |
|
| 126 |
|
| 127 |
### Framework versions
|