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 700
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:d68d6291906d71759f18dd20ef85152687bbfc9af6433f27a1b28a1a9a76711b
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -58,3 +58,13 @@
|
|
| 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"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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"}
|
| 61 |
+
{"current_steps": 610, "total_steps": 3236, "loss": 0.0082, "lr": 1.9531021879125654e-05, "epoch": 0.37718349049312105, "percentage": 18.85, "elapsed_time": "11:05:58", "remaining_time": "1 day, 23:46:59"}
|
| 62 |
+
{"current_steps": 620, "total_steps": 3236, "loss": 0.0081, "lr": 1.9497816799001726e-05, "epoch": 0.3833668264028443, "percentage": 19.16, "elapsed_time": "11:16:42", "remaining_time": "1 day, 23:35:15"}
|
| 63 |
+
{"current_steps": 630, "total_steps": 3236, "loss": 0.0078, "lr": 1.9463506275302094e-05, "epoch": 0.3895501623125676, "percentage": 19.47, "elapsed_time": "11:27:22", "remaining_time": "1 day, 23:23:21"}
|
| 64 |
+
{"current_steps": 640, "total_steps": 3236, "loss": 0.008, "lr": 1.9428094301402164e-05, "epoch": 0.3957334982222909, "percentage": 19.78, "elapsed_time": "11:38:06", "remaining_time": "1 day, 23:11:41"}
|
| 65 |
+
{"current_steps": 650, "total_steps": 3236, "loss": 0.0084, "lr": 1.939158499887428e-05, "epoch": 0.40191683413201423, "percentage": 20.09, "elapsed_time": "11:48:53", "remaining_time": "1 day, 23:00:19"}
|
| 66 |
+
{"current_steps": 660, "total_steps": 3236, "loss": 0.0077, "lr": 1.9353982617008024e-05, "epoch": 0.40810017004173754, "percentage": 20.4, "elapsed_time": "11:59:34", "remaining_time": "1 day, 22:48:31"}
|
| 67 |
+
{"current_steps": 670, "total_steps": 3236, "loss": 0.0082, "lr": 1.9315291532315626e-05, "epoch": 0.4142835059514608, "percentage": 20.7, "elapsed_time": "12:10:20", "remaining_time": "1 day, 22:37:06"}
|
| 68 |
+
{"current_steps": 680, "total_steps": 3236, "loss": 0.0082, "lr": 1.9275516248022613e-05, "epoch": 0.4204668418611841, "percentage": 21.01, "elapsed_time": "12:21:04", "remaining_time": "1 day, 22:25:34"}
|
| 69 |
+
{"current_steps": 690, "total_steps": 3236, "loss": 0.0078, "lr": 1.9234661393543668e-05, "epoch": 0.4266501777709074, "percentage": 21.32, "elapsed_time": "12:31:50", "remaining_time": "1 day, 22:14:11"}
|
| 70 |
+
{"current_steps": 700, "total_steps": 3236, "loss": 0.0082, "lr": 1.91927317239438e-05, "epoch": 0.4328335136806307, "percentage": 21.63, "elapsed_time": "12:42:35", "remaining_time": "1 day, 22:02:44"}
|