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 1300
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:e2dac18fa83ac80d46dd312f810c1eec2209fc4705df81fb90288539759a1d35
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -118,3 +118,13 @@
|
|
| 118 |
{"current_steps": 1180, "total_steps": 3236, "loss": 0.0072, "lr": 1.6038999594681074e-05, "epoch": 0.7296336373473489, "percentage": 36.46, "elapsed_time": "21:26:51", "remaining_time": "1 day, 13:22:11"}
|
| 119 |
{"current_steps": 1190, "total_steps": 3236, "loss": 0.0073, "lr": 1.5952659501815073e-05, "epoch": 0.7358169732570722, "percentage": 36.77, "elapsed_time": "21:37:36", "remaining_time": "1 day, 13:11:00"}
|
| 120 |
{"current_steps": 1200, "total_steps": 3236, "loss": 0.0073, "lr": 1.5865626583498355e-05, "epoch": 0.7420003091667955, "percentage": 37.08, "elapsed_time": "21:48:18", "remaining_time": "1 day, 12:59:44"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
{"current_steps": 1180, "total_steps": 3236, "loss": 0.0072, "lr": 1.6038999594681074e-05, "epoch": 0.7296336373473489, "percentage": 36.46, "elapsed_time": "21:26:51", "remaining_time": "1 day, 13:22:11"}
|
| 119 |
{"current_steps": 1190, "total_steps": 3236, "loss": 0.0073, "lr": 1.5952659501815073e-05, "epoch": 0.7358169732570722, "percentage": 36.77, "elapsed_time": "21:37:36", "remaining_time": "1 day, 13:11:00"}
|
| 120 |
{"current_steps": 1200, "total_steps": 3236, "loss": 0.0073, "lr": 1.5865626583498355e-05, "epoch": 0.7420003091667955, "percentage": 37.08, "elapsed_time": "21:48:18", "remaining_time": "1 day, 12:59:44"}
|
| 121 |
+
{"current_steps": 1210, "total_steps": 3236, "loss": 0.0071, "lr": 1.5777910969425184e-05, "epoch": 0.7481836450765188, "percentage": 37.39, "elapsed_time": "22:00:42", "remaining_time": "1 day, 12:51:21"}
|
| 122 |
+
{"current_steps": 1220, "total_steps": 3236, "loss": 0.0074, "lr": 1.5689522868748276e-05, "epoch": 0.7543669809862421, "percentage": 37.7, "elapsed_time": "22:11:26", "remaining_time": "1 day, 12:40:09"}
|
| 123 |
+
{"current_steps": 1230, "total_steps": 3236, "loss": 0.0071, "lr": 1.5600472568890523e-05, "epoch": 0.7605503168959654, "percentage": 38.01, "elapsed_time": "22:22:16", "remaining_time": "1 day, 12:29:07"}
|
| 124 |
+
{"current_steps": 1240, "total_steps": 3236, "loss": 0.0072, "lr": 1.551077043434769e-05, "epoch": 0.7667336528056886, "percentage": 38.32, "elapsed_time": "22:33:03", "remaining_time": "1 day, 12:17:58"}
|
| 125 |
+
{"current_steps": 1250, "total_steps": 3236, "loss": 0.0071, "lr": 1.5420426905482056e-05, "epoch": 0.7729169887154119, "percentage": 38.63, "elapsed_time": "22:43:50", "remaining_time": "1 day, 12:06:53"}
|
| 126 |
+
{"current_steps": 1260, "total_steps": 3236, "loss": 0.0072, "lr": 1.5329452497307316e-05, "epoch": 0.7791003246251352, "percentage": 38.94, "elapsed_time": "22:54:32", "remaining_time": "1 day, 11:55:37"}
|
| 127 |
+
{"current_steps": 1270, "total_steps": 3236, "loss": 0.0072, "lr": 1.5237857798264701e-05, "epoch": 0.7852836605348585, "percentage": 39.25, "elapsed_time": "23:05:19", "remaining_time": "1 day, 11:44:31"}
|
| 128 |
+
{"current_steps": 1280, "total_steps": 3236, "loss": 0.0071, "lr": 1.5145653468990626e-05, "epoch": 0.7914669964445818, "percentage": 39.56, "elapsed_time": "23:16:07", "remaining_time": "1 day, 11:33:26"}
|
| 129 |
+
{"current_steps": 1290, "total_steps": 3236, "loss": 0.0069, "lr": 1.50528502410759e-05, "epoch": 0.7976503323543052, "percentage": 39.86, "elapsed_time": "23:26:58", "remaining_time": "1 day, 11:22:27"}
|
| 130 |
+
{"current_steps": 1300, "total_steps": 3236, "loss": 0.0072, "lr": 1.4959458915816681e-05, "epoch": 0.8038336682640285, "percentage": 40.17, "elapsed_time": "23:37:37", "remaining_time": "1 day, 11:11:09"}
|