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 600
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:5aa0c08f110a1a69e486f08ebc72909cd305ace21b702b109d0961b1f657ed8f
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -48,3 +48,13 @@
|
|
| 48 |
{"current_steps": 480, "total_steps": 3236, "loss": 0.0084, "lr": 1.9860511577760042e-05, "epoch": 0.2968001236667182, "percentage": 14.83, "elapsed_time": "8:43:00", "remaining_time": "2 days, 2:02:53"}
|
| 49 |
{"current_steps": 490, "total_steps": 3236, "loss": 0.0084, "lr": 1.9841981551573424e-05, "epoch": 0.3029834595764415, "percentage": 15.14, "elapsed_time": "8:53:47", "remaining_time": "2 days, 1:51:22"}
|
| 50 |
{"current_steps": 500, "total_steps": 3236, "loss": 0.0085, "lr": 1.9822306024740855e-05, "epoch": 0.30916679548616477, "percentage": 15.45, "elapsed_time": "9:04:33", "remaining_time": "2 days, 1:39:47"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
{"current_steps": 480, "total_steps": 3236, "loss": 0.0084, "lr": 1.9860511577760042e-05, "epoch": 0.2968001236667182, "percentage": 14.83, "elapsed_time": "8:43:00", "remaining_time": "2 days, 2:02:53"}
|
| 49 |
{"current_steps": 490, "total_steps": 3236, "loss": 0.0084, "lr": 1.9841981551573424e-05, "epoch": 0.3029834595764415, "percentage": 15.14, "elapsed_time": "8:53:47", "remaining_time": "2 days, 1:51:22"}
|
| 50 |
{"current_steps": 500, "total_steps": 3236, "loss": 0.0085, "lr": 1.9822306024740855e-05, "epoch": 0.30916679548616477, "percentage": 15.45, "elapsed_time": "9:04:33", "remaining_time": "2 days, 1:39:47"}
|
| 51 |
+
{"current_steps": 510, "total_steps": 3236, "loss": 0.0085, "lr": 1.980148728728174e-05, "epoch": 0.3153501313958881, "percentage": 15.76, "elapsed_time": "9:17:00", "remaining_time": "2 days, 1:37:16"}
|
| 52 |
+
{"current_steps": 520, "total_steps": 3236, "loss": 0.0082, "lr": 1.9779527762272877e-05, "epoch": 0.3215334673056114, "percentage": 16.07, "elapsed_time": "9:27:41", "remaining_time": "2 days, 1:25:08"}
|
| 53 |
+
{"current_steps": 530, "total_steps": 3236, "loss": 0.0083, "lr": 1.975643000556646e-05, "epoch": 0.3277168032153347, "percentage": 16.38, "elapsed_time": "9:38:24", "remaining_time": "2 days, 1:13:08"}
|
| 54 |
+
{"current_steps": 540, "total_steps": 3236, "loss": 0.0083, "lr": 1.973219670549259e-05, "epoch": 0.33390013912505795, "percentage": 16.69, "elapsed_time": "9:49:11", "remaining_time": "2 days, 1:01:35"}
|
| 55 |
+
{"current_steps": 550, "total_steps": 3236, "loss": 0.0081, "lr": 1.970683068254637e-05, "epoch": 0.34008347503478126, "percentage": 17.0, "elapsed_time": "9:59:51", "remaining_time": "2 days, 0:49:30"}
|
| 56 |
+
{"current_steps": 560, "total_steps": 3236, "loss": 0.0081, "lr": 1.9680334889059668e-05, "epoch": 0.34626681094450457, "percentage": 17.31, "elapsed_time": "10:10:34", "remaining_time": "2 days, 0:37:39"}
|
| 57 |
+
{"current_steps": 570, "total_steps": 3236, "loss": 0.0081, "lr": 1.9652712408857452e-05, "epoch": 0.3524501468542279, "percentage": 17.61, "elapsed_time": "10:21:17", "remaining_time": "2 days, 0:25:52"}
|
| 58 |
+
{"current_steps": 580, "total_steps": 3236, "loss": 0.0078, "lr": 1.9623966456898914e-05, "epoch": 0.35863348276395113, "percentage": 17.92, "elapsed_time": "10:32:04", "remaining_time": "2 days, 0:14:27"}
|
| 59 |
+
{"current_steps": 590, "total_steps": 3236, "loss": 0.0083, "lr": 1.959410037890323e-05, "epoch": 0.36481681867367444, "percentage": 18.23, "elapsed_time": "10:42:51", "remaining_time": "2 days, 0:03:02"}
|
| 60 |
+
{"current_steps": 600, "total_steps": 3236, "loss": 0.0085, "lr": 1.9563117650960208e-05, "epoch": 0.37100015458339775, "percentage": 18.54, "elapsed_time": "10:53:41", "remaining_time": "1 day, 23:51:53"}
|