Text Generation
Transformers
Safetensors
llama
axolotl
Generated from Trainer
conversational
text-generation-inference
Instructions to use SystemAdmin123/llama-68m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SystemAdmin123/llama-68m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SystemAdmin123/llama-68m") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SystemAdmin123/llama-68m") model = AutoModelForCausalLM.from_pretrained("SystemAdmin123/llama-68m") 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/llama-68m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SystemAdmin123/llama-68m" # 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/llama-68m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SystemAdmin123/llama-68m
- SGLang
How to use SystemAdmin123/llama-68m 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/llama-68m" \ --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/llama-68m", "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/llama-68m" \ --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/llama-68m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SystemAdmin123/llama-68m with Docker Model Runner:
docker model run hf.co/SystemAdmin123/llama-68m
Training in progress, step 600, checkpoint
Browse files
last-checkpoint/model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 136062744
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:463e50976fdd4523d72dfa1f9dde00e7d2fb94044b71ff95fa42ebac380383f9
|
| 3 |
size 136062744
|
last-checkpoint/optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 138234066
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0622f360da035ed6f191ceef1a70160b2b4f027c1bb245098847e56aae470e88
|
| 3 |
size 138234066
|
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 14512
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da2a7e5837e8166f34d69c47cbcb9c5f754b8d9aaee67ec69e6f2fe466d72356
|
| 3 |
size 14512
|
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 14512
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bd3708ae31f1069fc45ac5848423f03f6df0cd0e16b6138df98e3ba73d336476
|
| 3 |
size 14512
|
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:5ad54995b081fae25638228c5d9c8f38ca277e5c5ad00bc3e49897b543f84405
|
| 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": 50,
|
| 6 |
-
"global_step":
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
@@ -488,6 +488,49 @@
|
|
| 488 |
"eval_samples_per_second": 265.392,
|
| 489 |
"eval_steps_per_second": 4.243,
|
| 490 |
"step": 550
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 491 |
}
|
| 492 |
],
|
| 493 |
"logging_steps": 10,
|
|
@@ -502,12 +545,12 @@
|
|
| 502 |
"should_evaluate": false,
|
| 503 |
"should_log": false,
|
| 504 |
"should_save": true,
|
| 505 |
-
"should_training_stop":
|
| 506 |
},
|
| 507 |
"attributes": {}
|
| 508 |
}
|
| 509 |
},
|
| 510 |
-
"total_flos":
|
| 511 |
"train_batch_size": 32,
|
| 512 |
"trial_name": null,
|
| 513 |
"trial_params": null
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 46.15384615384615,
|
| 5 |
"eval_steps": 50,
|
| 6 |
+
"global_step": 600,
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
|
|
| 488 |
"eval_samples_per_second": 265.392,
|
| 489 |
"eval_steps_per_second": 4.243,
|
| 490 |
"step": 550
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"epoch": 43.07692307692308,
|
| 494 |
+
"grad_norm": 0.61328125,
|
| 495 |
+
"learning_rate": 2.420361737256438e-06,
|
| 496 |
+
"loss": 0.6671,
|
| 497 |
+
"step": 560
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"epoch": 43.84615384615385,
|
| 501 |
+
"grad_norm": 0.62890625,
|
| 502 |
+
"learning_rate": 1.3638696597277679e-06,
|
| 503 |
+
"loss": 0.6683,
|
| 504 |
+
"step": 570
|
| 505 |
+
},
|
| 506 |
+
{
|
| 507 |
+
"epoch": 44.61538461538461,
|
| 508 |
+
"grad_norm": 0.59375,
|
| 509 |
+
"learning_rate": 6.069322682050516e-07,
|
| 510 |
+
"loss": 0.6714,
|
| 511 |
+
"step": 580
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"epoch": 45.38461538461539,
|
| 515 |
+
"grad_norm": 0.6015625,
|
| 516 |
+
"learning_rate": 1.518483566683826e-07,
|
| 517 |
+
"loss": 0.6695,
|
| 518 |
+
"step": 590
|
| 519 |
+
},
|
| 520 |
+
{
|
| 521 |
+
"epoch": 46.15384615384615,
|
| 522 |
+
"grad_norm": 0.62109375,
|
| 523 |
+
"learning_rate": 0.0,
|
| 524 |
+
"loss": 0.6667,
|
| 525 |
+
"step": 600
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"epoch": 46.15384615384615,
|
| 529 |
+
"eval_loss": 4.010259628295898,
|
| 530 |
+
"eval_runtime": 5.6787,
|
| 531 |
+
"eval_samples_per_second": 264.32,
|
| 532 |
+
"eval_steps_per_second": 4.226,
|
| 533 |
+
"step": 600
|
| 534 |
}
|
| 535 |
],
|
| 536 |
"logging_steps": 10,
|
|
|
|
| 545 |
"should_evaluate": false,
|
| 546 |
"should_log": false,
|
| 547 |
"should_save": true,
|
| 548 |
+
"should_training_stop": true
|
| 549 |
},
|
| 550 |
"attributes": {}
|
| 551 |
}
|
| 552 |
},
|
| 553 |
+
"total_flos": 2.05042678235136e+16,
|
| 554 |
"train_batch_size": 32,
|
| 555 |
"trial_name": null,
|
| 556 |
"trial_params": null
|