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 300
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:699ef881c232a63980da7069a1409032b5f5c874103fe6286c2b62d78c1086d6
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -18,3 +18,13 @@
|
|
| 18 |
{"current_steps": 180, "total_steps": 3236, "loss": 0.0091, "lr": 1.1049382716049384e-05, "epoch": 0.11130004637501932, "percentage": 5.56, "elapsed_time": "3:15:39", "remaining_time": "2 days, 7:21:47"}
|
| 19 |
{"current_steps": 190, "total_steps": 3236, "loss": 0.0084, "lr": 1.1666666666666668e-05, "epoch": 0.11748338228474262, "percentage": 5.87, "elapsed_time": "3:26:24", "remaining_time": "2 days, 7:09:09"}
|
| 20 |
{"current_steps": 200, "total_steps": 3236, "loss": 0.0095, "lr": 1.228395061728395e-05, "epoch": 0.12366671819446591, "percentage": 6.18, "elapsed_time": "3:37:10", "remaining_time": "2 days, 6:56:49"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
{"current_steps": 180, "total_steps": 3236, "loss": 0.0091, "lr": 1.1049382716049384e-05, "epoch": 0.11130004637501932, "percentage": 5.56, "elapsed_time": "3:15:39", "remaining_time": "2 days, 7:21:47"}
|
| 19 |
{"current_steps": 190, "total_steps": 3236, "loss": 0.0084, "lr": 1.1666666666666668e-05, "epoch": 0.11748338228474262, "percentage": 5.87, "elapsed_time": "3:26:24", "remaining_time": "2 days, 7:09:09"}
|
| 20 |
{"current_steps": 200, "total_steps": 3236, "loss": 0.0095, "lr": 1.228395061728395e-05, "epoch": 0.12366671819446591, "percentage": 6.18, "elapsed_time": "3:37:10", "remaining_time": "2 days, 6:56:49"}
|
| 21 |
+
{"current_steps": 210, "total_steps": 3236, "loss": 0.0087, "lr": 1.2901234567901235e-05, "epoch": 0.1298500541041892, "percentage": 6.49, "elapsed_time": "3:49:35", "remaining_time": "2 days, 7:08:16"}
|
| 22 |
+
{"current_steps": 220, "total_steps": 3236, "loss": 0.009, "lr": 1.351851851851852e-05, "epoch": 0.13603339001391251, "percentage": 6.8, "elapsed_time": "4:00:19", "remaining_time": "2 days, 6:54:37"}
|
| 23 |
+
{"current_steps": 230, "total_steps": 3236, "loss": 0.009, "lr": 1.4135802469135805e-05, "epoch": 0.1422167259236358, "percentage": 7.11, "elapsed_time": "4:11:09", "remaining_time": "2 days, 6:42:33"}
|
| 24 |
+
{"current_steps": 240, "total_steps": 3236, "loss": 0.0093, "lr": 1.4753086419753087e-05, "epoch": 0.1484000618333591, "percentage": 7.42, "elapsed_time": "4:21:52", "remaining_time": "2 days, 6:29:04"}
|
| 25 |
+
{"current_steps": 250, "total_steps": 3236, "loss": 0.0091, "lr": 1.537037037037037e-05, "epoch": 0.15458339774308238, "percentage": 7.73, "elapsed_time": "4:32:35", "remaining_time": "2 days, 6:15:53"}
|
| 26 |
+
{"current_steps": 260, "total_steps": 3236, "loss": 0.0088, "lr": 1.5987654320987655e-05, "epoch": 0.1607667336528057, "percentage": 8.03, "elapsed_time": "4:43:19", "remaining_time": "2 days, 6:02:53"}
|
| 27 |
+
{"current_steps": 270, "total_steps": 3236, "loss": 0.0092, "lr": 1.660493827160494e-05, "epoch": 0.16695006956252897, "percentage": 8.34, "elapsed_time": "4:54:08", "remaining_time": "2 days, 5:51:11"}
|
| 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"}
|