Text Generation
Transformers
Safetensors
llama
axolotl
Generated from Trainer
conversational
text-generation-inference
Instructions to use SystemAdmin123/tiny-random-LlamaForCausalLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SystemAdmin123/tiny-random-LlamaForCausalLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SystemAdmin123/tiny-random-LlamaForCausalLM") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SystemAdmin123/tiny-random-LlamaForCausalLM") model = AutoModelForCausalLM.from_pretrained("SystemAdmin123/tiny-random-LlamaForCausalLM") 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 Settings
- vLLM
How to use SystemAdmin123/tiny-random-LlamaForCausalLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SystemAdmin123/tiny-random-LlamaForCausalLM" # 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/tiny-random-LlamaForCausalLM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SystemAdmin123/tiny-random-LlamaForCausalLM
- SGLang
How to use SystemAdmin123/tiny-random-LlamaForCausalLM 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/tiny-random-LlamaForCausalLM" \ --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/tiny-random-LlamaForCausalLM", "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/tiny-random-LlamaForCausalLM" \ --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/tiny-random-LlamaForCausalLM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SystemAdmin123/tiny-random-LlamaForCausalLM with Docker Model Runner:
docker model run hf.co/SystemAdmin123/tiny-random-LlamaForCausalLM
End of training
Browse files
README.md
CHANGED
|
@@ -36,7 +36,7 @@ datasets:
|
|
| 36 |
system_prompt: ''
|
| 37 |
device_map: auto
|
| 38 |
eval_sample_packing: false
|
| 39 |
-
eval_steps:
|
| 40 |
flash_attention: true
|
| 41 |
gradient_checkpointing: true
|
| 42 |
group_by_length: true
|
|
@@ -54,7 +54,7 @@ output_dir: /root/.sn56/axolotl/tmp/tiny-random-LlamaForCausalLM
|
|
| 54 |
pad_to_sequence_len: true
|
| 55 |
resize_token_embeddings_to_32x: false
|
| 56 |
sample_packing: true
|
| 57 |
-
save_steps:
|
| 58 |
save_total_limit: 2
|
| 59 |
sequence_len: 2048
|
| 60 |
tokenizer_type: LlamaTokenizerFast
|
|
@@ -77,7 +77,7 @@ warmup_ratio: 0.05
|
|
| 77 |
|
| 78 |
This model is a fine-tuned version of [trl-internal-testing/tiny-random-LlamaForCausalLM](https://huggingface.co/trl-internal-testing/tiny-random-LlamaForCausalLM) on the argilla/databricks-dolly-15k-curated-en dataset.
|
| 79 |
It achieves the following results on the evaluation set:
|
| 80 |
-
- Loss: 9.
|
| 81 |
|
| 82 |
## Model description
|
| 83 |
|
|
@@ -114,21 +114,18 @@ The following hyperparameters were used during training:
|
|
| 114 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 115 |
|:-------------:|:-------:|:----:|:---------------:|
|
| 116 |
| No log | 0.0769 | 1 | 10.3764 |
|
| 117 |
-
| 10.
|
| 118 |
-
|
|
| 119 |
-
| 9.
|
| 120 |
-
| 9.
|
| 121 |
-
| 9.
|
| 122 |
-
| 9.
|
| 123 |
-
| 9.
|
| 124 |
-
| 9.
|
| 125 |
-
| 9.
|
| 126 |
-
| 9.
|
| 127 |
-
| 9.
|
| 128 |
-
| 9.
|
| 129 |
-
| 9.1775 | 40.0 | 520 | 9.1938 |
|
| 130 |
-
| 9.1784 | 43.0769 | 560 | 9.1949 |
|
| 131 |
-
| 9.1762 | 46.1538 | 600 | 9.1944 |
|
| 132 |
|
| 133 |
|
| 134 |
### Framework versions
|
|
|
|
| 36 |
system_prompt: ''
|
| 37 |
device_map: auto
|
| 38 |
eval_sample_packing: false
|
| 39 |
+
eval_steps: 50
|
| 40 |
flash_attention: true
|
| 41 |
gradient_checkpointing: true
|
| 42 |
group_by_length: true
|
|
|
|
| 54 |
pad_to_sequence_len: true
|
| 55 |
resize_token_embeddings_to_32x: false
|
| 56 |
sample_packing: true
|
| 57 |
+
save_steps: 50
|
| 58 |
save_total_limit: 2
|
| 59 |
sequence_len: 2048
|
| 60 |
tokenizer_type: LlamaTokenizerFast
|
|
|
|
| 77 |
|
| 78 |
This model is a fine-tuned version of [trl-internal-testing/tiny-random-LlamaForCausalLM](https://huggingface.co/trl-internal-testing/tiny-random-LlamaForCausalLM) on the argilla/databricks-dolly-15k-curated-en dataset.
|
| 79 |
It achieves the following results on the evaluation set:
|
| 80 |
+
- Loss: 9.1943
|
| 81 |
|
| 82 |
## Model description
|
| 83 |
|
|
|
|
| 114 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 115 |
|:-------------:|:-------:|:----:|:---------------:|
|
| 116 |
| No log | 0.0769 | 1 | 10.3764 |
|
| 117 |
+
| 10.3159 | 3.8462 | 50 | 10.2852 |
|
| 118 |
+
| 9.998 | 7.6923 | 100 | 9.9738 |
|
| 119 |
+
| 9.7359 | 11.5385 | 150 | 9.7190 |
|
| 120 |
+
| 9.5151 | 15.3846 | 200 | 9.5042 |
|
| 121 |
+
| 9.3407 | 19.2308 | 250 | 9.3411 |
|
| 122 |
+
| 9.2338 | 23.0769 | 300 | 9.2415 |
|
| 123 |
+
| 9.1896 | 26.9231 | 350 | 9.2039 |
|
| 124 |
+
| 9.18 | 30.7692 | 400 | 9.1960 |
|
| 125 |
+
| 9.1777 | 34.6154 | 450 | 9.1957 |
|
| 126 |
+
| 9.1781 | 38.4615 | 500 | 9.1931 |
|
| 127 |
+
| 9.1761 | 42.3077 | 550 | 9.1936 |
|
| 128 |
+
| 9.1762 | 46.1538 | 600 | 9.1943 |
|
|
|
|
|
|
|
|
|
|
| 129 |
|
| 130 |
|
| 131 |
### Framework versions
|