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)# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("adpretko/train-armv8-O2_epoch3_AMD") model = AutoModelForMultimodalLM.from_pretrained("adpretko/train-armv8-O2_epoch3_AMD") 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 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 3200
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:68568245a0b436d8cfe998cfc30ef096be55953626ad688db4acd2c1b6604aab
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -68,3 +68,13 @@
|
|
| 68 |
{"current_steps": 3080, "total_steps": 3236, "loss": 0.0044, "lr": 1.4310268198229115e-07, "epoch": 1.904003710001546, "percentage": 95.18, "elapsed_time": "12:21:40", "remaining_time": "0:37:33"}
|
| 69 |
{"current_steps": 3090, "total_steps": 3236, "loss": 0.0043, "lr": 1.2549061554127494e-07, "epoch": 1.910187045911269, "percentage": 95.49, "elapsed_time": "12:32:23", "remaining_time": "0:35:32"}
|
| 70 |
{"current_steps": 3100, "total_steps": 3236, "loss": 0.0046, "lr": 1.0902783563560226e-07, "epoch": 1.9163703818209923, "percentage": 95.8, "elapsed_time": "12:43:06", "remaining_time": "0:33:28"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
{"current_steps": 3080, "total_steps": 3236, "loss": 0.0044, "lr": 1.4310268198229115e-07, "epoch": 1.904003710001546, "percentage": 95.18, "elapsed_time": "12:21:40", "remaining_time": "0:37:33"}
|
| 69 |
{"current_steps": 3090, "total_steps": 3236, "loss": 0.0043, "lr": 1.2549061554127494e-07, "epoch": 1.910187045911269, "percentage": 95.49, "elapsed_time": "12:32:23", "remaining_time": "0:35:32"}
|
| 70 |
{"current_steps": 3100, "total_steps": 3236, "loss": 0.0046, "lr": 1.0902783563560226e-07, "epoch": 1.9163703818209923, "percentage": 95.8, "elapsed_time": "12:43:06", "remaining_time": "0:33:28"}
|
| 71 |
+
{"current_steps": 3110, "total_steps": 3236, "loss": 0.0045, "lr": 9.371625835553622e-08, "epoch": 1.9225537177307157, "percentage": 96.11, "elapsed_time": "12:55:25", "remaining_time": "0:31:24"}
|
| 72 |
+
{"current_steps": 3120, "total_steps": 3236, "loss": 0.0042, "lr": 7.955766580375334e-08, "epoch": 1.9287370536404391, "percentage": 96.42, "elapsed_time": "13:06:08", "remaining_time": "0:29:13"}
|
| 73 |
+
{"current_steps": 3130, "total_steps": 3236, "loss": 0.0045, "lr": 6.655370588792732e-08, "epoch": 1.9349203895501623, "percentage": 96.72, "elapsed_time": "13:16:53", "remaining_time": "0:26:59"}
|
| 74 |
+
{"current_steps": 3140, "total_steps": 3236, "loss": 0.0044, "lr": 5.470589212892785e-08, "epoch": 1.9411037254598855, "percentage": 97.03, "elapsed_time": "13:27:39", "remaining_time": "0:24:41"}
|
| 75 |
+
{"current_steps": 3150, "total_steps": 3236, "loss": 0.0043, "lr": 4.401560348466505e-08, "epoch": 1.947287061369609, "percentage": 97.34, "elapsed_time": "13:38:23", "remaining_time": "0:22:20"}
|
| 76 |
+
{"current_steps": 3160, "total_steps": 3236, "loss": 0.0043, "lr": 3.448408418959326e-08, "epoch": 1.9534703972793324, "percentage": 97.65, "elapsed_time": "13:49:06", "remaining_time": "0:19:56"}
|
| 77 |
+
{"current_steps": 3170, "total_steps": 3236, "loss": 0.0044, "lr": 2.6112443609895845e-08, "epoch": 1.9596537331890556, "percentage": 97.96, "elapsed_time": "13:59:54", "remaining_time": "0:17:29"}
|
| 78 |
+
{"current_steps": 3180, "total_steps": 3236, "loss": 0.0045, "lr": 1.890165611436734e-08, "epoch": 1.9658370690987788, "percentage": 98.27, "elapsed_time": "14:10:39", "remaining_time": "0:14:58"}
|
| 79 |
+
{"current_steps": 3190, "total_steps": 3236, "loss": 0.0044, "lr": 1.285256096100529e-08, "epoch": 1.972020405008502, "percentage": 98.58, "elapsed_time": "14:21:25", "remaining_time": "0:12:25"}
|
| 80 |
+
{"current_steps": 3200, "total_steps": 3236, "loss": 0.0045, "lr": 7.965862199330598e-09, "epoch": 1.9782037409182254, "percentage": 98.89, "elapsed_time": "14:32:10", "remaining_time": "0:09:48"}
|