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 200
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:7be0c6017742c00b65c46cc73d13ad214063672bd8fab4075f24e0dcde57bcf2
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -8,3 +8,13 @@
|
|
| 8 |
{"current_steps": 80, "total_steps": 3236, "loss": 0.008, "lr": 4.876543209876544e-06, "epoch": 0.049466687277786366, "percentage": 2.47, "elapsed_time": "1:26:39", "remaining_time": "2 days, 8:58:30"}
|
| 9 |
{"current_steps": 90, "total_steps": 3236, "loss": 0.0077, "lr": 5.493827160493828e-06, "epoch": 0.05565002318750966, "percentage": 2.78, "elapsed_time": "1:37:27", "remaining_time": "2 days, 8:46:39"}
|
| 10 |
{"current_steps": 100, "total_steps": 3236, "loss": 0.0084, "lr": 6.111111111111112e-06, "epoch": 0.061833359097232955, "percentage": 3.09, "elapsed_time": "1:48:15", "remaining_time": "2 days, 8:35:13"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
{"current_steps": 80, "total_steps": 3236, "loss": 0.008, "lr": 4.876543209876544e-06, "epoch": 0.049466687277786366, "percentage": 2.47, "elapsed_time": "1:26:39", "remaining_time": "2 days, 8:58:30"}
|
| 9 |
{"current_steps": 90, "total_steps": 3236, "loss": 0.0077, "lr": 5.493827160493828e-06, "epoch": 0.05565002318750966, "percentage": 2.78, "elapsed_time": "1:37:27", "remaining_time": "2 days, 8:46:39"}
|
| 10 |
{"current_steps": 100, "total_steps": 3236, "loss": 0.0084, "lr": 6.111111111111112e-06, "epoch": 0.061833359097232955, "percentage": 3.09, "elapsed_time": "1:48:15", "remaining_time": "2 days, 8:35:13"}
|
| 11 |
+
{"current_steps": 110, "total_steps": 3236, "loss": 0.008, "lr": 6.728395061728395e-06, "epoch": 0.06801669500695626, "percentage": 3.4, "elapsed_time": "2:00:22", "remaining_time": "2 days, 9:01:03"}
|
| 12 |
+
{"current_steps": 120, "total_steps": 3236, "loss": 0.0083, "lr": 7.34567901234568e-06, "epoch": 0.07420003091667955, "percentage": 3.71, "elapsed_time": "2:11:04", "remaining_time": "2 days, 8:43:43"}
|
| 13 |
+
{"current_steps": 130, "total_steps": 3236, "loss": 0.0081, "lr": 7.962962962962963e-06, "epoch": 0.08038336682640285, "percentage": 4.02, "elapsed_time": "2:21:50", "remaining_time": "2 days, 8:28:54"}
|
| 14 |
+
{"current_steps": 140, "total_steps": 3236, "loss": 0.0084, "lr": 8.580246913580249e-06, "epoch": 0.08656670273612614, "percentage": 4.33, "elapsed_time": "2:32:33", "remaining_time": "2 days, 8:13:45"}
|
| 15 |
+
{"current_steps": 150, "total_steps": 3236, "loss": 0.0087, "lr": 9.197530864197531e-06, "epoch": 0.09275003864584944, "percentage": 4.64, "elapsed_time": "2:43:20", "remaining_time": "2 days, 8:00:28"}
|
| 16 |
+
{"current_steps": 160, "total_steps": 3236, "loss": 0.0087, "lr": 9.814814814814815e-06, "epoch": 0.09893337455557273, "percentage": 4.94, "elapsed_time": "2:54:06", "remaining_time": "2 days, 7:47:22"}
|
| 17 |
+
{"current_steps": 170, "total_steps": 3236, "loss": 0.0089, "lr": 1.04320987654321e-05, "epoch": 0.10511671046529603, "percentage": 5.25, "elapsed_time": "3:04:56", "remaining_time": "2 days, 7:35:35"}
|
| 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"}
|