Text Generation
Transformers
Safetensors
qwen2
llama-factory
Generated from Trainer
conversational
text-generation-inference
Instructions to use adpretko/train-armv8-O2_epoch3_AMD with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use adpretko/train-armv8-O2_epoch3_AMD with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="adpretko/train-armv8-O2_epoch3_AMD") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("adpretko/train-armv8-O2_epoch3_AMD") model = AutoModelForCausalLM.from_pretrained("adpretko/train-armv8-O2_epoch3_AMD", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use adpretko/train-armv8-O2_epoch3_AMD with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "adpretko/train-armv8-O2_epoch3_AMD" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "adpretko/train-armv8-O2_epoch3_AMD", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/adpretko/train-armv8-O2_epoch3_AMD
- SGLang
How to use adpretko/train-armv8-O2_epoch3_AMD 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 "adpretko/train-armv8-O2_epoch3_AMD" \ --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": "adpretko/train-armv8-O2_epoch3_AMD", "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 "adpretko/train-armv8-O2_epoch3_AMD" \ --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": "adpretko/train-armv8-O2_epoch3_AMD", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use adpretko/train-armv8-O2_epoch3_AMD with Docker Model Runner:
docker model run hf.co/adpretko/train-armv8-O2_epoch3_AMD
Training in progress, step 400
Browse files- model.safetensors +1 -1
- trainer_log.jsonl +10 -0
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3554214752
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:81187316375d15b4e7af37de1905c07599d46cfff00b185922d18e5a8138230a
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -28,3 +28,13 @@
|
|
| 28 |
{"current_steps": 280, "total_steps": 3236, "loss": 0.0095, "lr": 1.7222222222222224e-05, "epoch": 0.17313340547225228, "percentage": 8.65, "elapsed_time": "5:04:52", "remaining_time": "2 days, 5:38:38"}
|
| 29 |
{"current_steps": 290, "total_steps": 3236, "loss": 0.0282, "lr": 1.7839506172839506e-05, "epoch": 0.17931674138197556, "percentage": 8.96, "elapsed_time": "5:15:37", "remaining_time": "2 days, 5:26:14"}
|
| 30 |
{"current_steps": 300, "total_steps": 3236, "loss": 0.016, "lr": 1.8456790123456792e-05, "epoch": 0.18550007729169887, "percentage": 9.27, "elapsed_time": "5:26:18", "remaining_time": "2 days, 5:13:29"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
{"current_steps": 280, "total_steps": 3236, "loss": 0.0095, "lr": 1.7222222222222224e-05, "epoch": 0.17313340547225228, "percentage": 8.65, "elapsed_time": "5:04:52", "remaining_time": "2 days, 5:38:38"}
|
| 29 |
{"current_steps": 290, "total_steps": 3236, "loss": 0.0282, "lr": 1.7839506172839506e-05, "epoch": 0.17931674138197556, "percentage": 8.96, "elapsed_time": "5:15:37", "remaining_time": "2 days, 5:26:14"}
|
| 30 |
{"current_steps": 300, "total_steps": 3236, "loss": 0.016, "lr": 1.8456790123456792e-05, "epoch": 0.18550007729169887, "percentage": 9.27, "elapsed_time": "5:26:18", "remaining_time": "2 days, 5:13:29"}
|
| 31 |
+
{"current_steps": 310, "total_steps": 3236, "loss": 0.0118, "lr": 1.9074074074074075e-05, "epoch": 0.19168341320142215, "percentage": 9.58, "elapsed_time": "5:38:41", "remaining_time": "2 days, 5:16:52"}
|
| 32 |
+
{"current_steps": 320, "total_steps": 3236, "loss": 0.0105, "lr": 1.969135802469136e-05, "epoch": 0.19786674911114546, "percentage": 9.89, "elapsed_time": "5:49:27", "remaining_time": "2 days, 5:04:23"}
|
| 33 |
+
{"current_steps": 330, "total_steps": 3236, "loss": 0.0098, "lr": 1.9999854512405252e-05, "epoch": 0.20405008502086877, "percentage": 10.2, "elapsed_time": "6:00:09", "remaining_time": "2 days, 4:51:35"}
|
| 34 |
+
{"current_steps": 340, "total_steps": 3236, "loss": 0.0092, "lr": 1.9998690637047088e-05, "epoch": 0.21023342093059205, "percentage": 10.51, "elapsed_time": "6:10:55", "remaining_time": "2 days, 4:39:27"}
|
| 35 |
+
{"current_steps": 350, "total_steps": 3236, "loss": 0.0093, "lr": 1.999636302179332e-05, "epoch": 0.21641675684031536, "percentage": 10.82, "elapsed_time": "6:21:46", "remaining_time": "2 days, 4:28:00"}
|
| 36 |
+
{"current_steps": 360, "total_steps": 3236, "loss": 0.0089, "lr": 1.9992871937553292e-05, "epoch": 0.22260009275003864, "percentage": 11.12, "elapsed_time": "6:32:31", "remaining_time": "2 days, 4:15:50"}
|
| 37 |
+
{"current_steps": 370, "total_steps": 3236, "loss": 0.0086, "lr": 1.9988217790651605e-05, "epoch": 0.22878342865976195, "percentage": 11.43, "elapsed_time": "6:43:13", "remaining_time": "2 days, 4:03:18"}
|
| 38 |
+
{"current_steps": 380, "total_steps": 3236, "loss": 0.0093, "lr": 1.9982401122780834e-05, "epoch": 0.23496676456948523, "percentage": 11.74, "elapsed_time": "6:53:57", "remaining_time": "2 days, 3:51:14"}
|
| 39 |
+
{"current_steps": 390, "total_steps": 3236, "loss": 0.0087, "lr": 1.9975422610938463e-05, "epoch": 0.24115010047920854, "percentage": 12.05, "elapsed_time": "7:04:46", "remaining_time": "2 days, 3:39:43"}
|
| 40 |
+
{"current_steps": 400, "total_steps": 3236, "loss": 0.0087, "lr": 1.9967283067348106e-05, "epoch": 0.24733343638893182, "percentage": 12.36, "elapsed_time": "7:15:30", "remaining_time": "2 days, 3:27:48"}
|