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
Training in progress, step 40, checkpoint
Browse files- last-checkpoint/model.safetensors +1 -1
- last-checkpoint/optimizer.pt +1 -1
- last-checkpoint/rng_state_0.pth +1 -1
- last-checkpoint/rng_state_1.pth +1 -1
- last-checkpoint/rng_state_2.pth +1 -1
- last-checkpoint/rng_state_3.pth +1 -1
- last-checkpoint/scheduler.pt +1 -1
- last-checkpoint/trainer_state.json +25 -3
last-checkpoint/model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2066752
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:94661efade50fe6aebdc27ba404c3ae586977e95a0a5743328cfd154ad1fc910
|
| 3 |
size 2066752
|
last-checkpoint/optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2162798
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ed634c87695c3354020e98afbf649d6ef58b6c85d097e57430eb83fe04ceb0eb
|
| 3 |
size 2162798
|
last-checkpoint/rng_state_0.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 15024
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b9d8ba6dc294a7802a4dafc0e564c1a2eee3305104ad939fbc56d5ce507ea444
|
| 3 |
size 15024
|
last-checkpoint/rng_state_1.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 15024
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1f0cceb0ed85b2c6f37fd08e1761f95ce6ce00ab47aa275d076d6aa53a386d4e
|
| 3 |
size 15024
|
last-checkpoint/rng_state_2.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 15024
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c2204e8c1dd9dc7722a4f81e5fd4492d8dfa53c90fc9556f23dafd200a539a7a
|
| 3 |
size 15024
|
last-checkpoint/rng_state_3.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 15024
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9003a850e509d15b02ef8ebe5e4de4ee92eba098365621434af147786d9f58d1
|
| 3 |
size 15024
|
last-checkpoint/scheduler.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1064
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:02fba4d221acb6fea331334b3de1974a87e216e52fc96554556bafda3bca4247
|
| 3 |
size 1064
|
last-checkpoint/trainer_state.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
-
"epoch":
|
| 5 |
"eval_steps": 20,
|
| 6 |
-
"global_step":
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
@@ -37,6 +37,28 @@
|
|
| 37 |
"eval_samples_per_second": 645.523,
|
| 38 |
"eval_steps_per_second": 5.161,
|
| 39 |
"step": 20
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
}
|
| 41 |
],
|
| 42 |
"logging_steps": 10,
|
|
@@ -56,7 +78,7 @@
|
|
| 56 |
"attributes": {}
|
| 57 |
}
|
| 58 |
},
|
| 59 |
-
"total_flos":
|
| 60 |
"train_batch_size": 32,
|
| 61 |
"trial_name": null,
|
| 62 |
"trial_params": null
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 6.666666666666667,
|
| 5 |
"eval_steps": 20,
|
| 6 |
+
"global_step": 40,
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
|
|
| 37 |
"eval_samples_per_second": 645.523,
|
| 38 |
"eval_steps_per_second": 5.161,
|
| 39 |
"step": 20
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"epoch": 5.0,
|
| 43 |
+
"grad_norm": 0.2236328125,
|
| 44 |
+
"learning_rate": 0.00016772815716257412,
|
| 45 |
+
"loss": 10.3433,
|
| 46 |
+
"step": 30
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"epoch": 6.666666666666667,
|
| 50 |
+
"grad_norm": 0.3203125,
|
| 51 |
+
"learning_rate": 0.00014016954246529696,
|
| 52 |
+
"loss": 10.3073,
|
| 53 |
+
"step": 40
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"epoch": 6.666666666666667,
|
| 57 |
+
"eval_loss": 10.284021377563477,
|
| 58 |
+
"eval_runtime": 2.3214,
|
| 59 |
+
"eval_samples_per_second": 646.597,
|
| 60 |
+
"eval_steps_per_second": 5.169,
|
| 61 |
+
"step": 40
|
| 62 |
}
|
| 63 |
],
|
| 64 |
"logging_steps": 10,
|
|
|
|
| 78 |
"attributes": {}
|
| 79 |
}
|
| 80 |
},
|
| 81 |
+
"total_flos": 32732683960320.0,
|
| 82 |
"train_batch_size": 32,
|
| 83 |
"trial_name": null,
|
| 84 |
"trial_params": null
|