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 900
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:919f3f381bf4982f8a9c3022bd19874774cd248c2cbefda6206c264cb27b7e09
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -78,3 +78,13 @@
|
|
| 78 |
{"current_steps": 780, "total_steps": 3236, "loss": 0.008, "lr": 1.881921264348355e-05, "epoch": 0.4823002009584171, "percentage": 24.1, "elapsed_time": "14:10:24", "remaining_time": "1 day, 20:37:40"}
|
| 79 |
{"current_steps": 790, "total_steps": 3236, "loss": 0.0078, "lr": 1.876784406260664e-05, "epoch": 0.4884835368681404, "percentage": 24.41, "elapsed_time": "14:21:08", "remaining_time": "1 day, 20:26:15"}
|
| 80 |
{"current_steps": 800, "total_steps": 3236, "loss": 0.0079, "lr": 1.871545499911811e-05, "epoch": 0.49466687277786364, "percentage": 24.72, "elapsed_time": "14:31:51", "remaining_time": "1 day, 20:14:48"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
{"current_steps": 780, "total_steps": 3236, "loss": 0.008, "lr": 1.881921264348355e-05, "epoch": 0.4823002009584171, "percentage": 24.1, "elapsed_time": "14:10:24", "remaining_time": "1 day, 20:37:40"}
|
| 79 |
{"current_steps": 790, "total_steps": 3236, "loss": 0.0078, "lr": 1.876784406260664e-05, "epoch": 0.4884835368681404, "percentage": 24.41, "elapsed_time": "14:21:08", "remaining_time": "1 day, 20:26:15"}
|
| 80 |
{"current_steps": 800, "total_steps": 3236, "loss": 0.0079, "lr": 1.871545499911811e-05, "epoch": 0.49466687277786364, "percentage": 24.72, "elapsed_time": "14:31:51", "remaining_time": "1 day, 20:14:48"}
|
| 81 |
+
{"current_steps": 810, "total_steps": 3236, "loss": 0.0079, "lr": 1.866205155054067e-05, "epoch": 0.500850208687587, "percentage": 25.03, "elapsed_time": "14:44:21", "remaining_time": "1 day, 20:08:41"}
|
| 82 |
+
{"current_steps": 820, "total_steps": 3236, "loss": 0.0077, "lr": 1.860763993246053e-05, "epoch": 0.5070335445973102, "percentage": 25.34, "elapsed_time": "14:55:03", "remaining_time": "1 day, 19:57:07"}
|
| 83 |
+
{"current_steps": 830, "total_steps": 3236, "loss": 0.0076, "lr": 1.8552226477803984e-05, "epoch": 0.5132168805070335, "percentage": 25.65, "elapsed_time": "15:05:49", "remaining_time": "1 day, 19:45:48"}
|
| 84 |
+
{"current_steps": 840, "total_steps": 3236, "loss": 0.0079, "lr": 1.8495817636100293e-05, "epoch": 0.5194002164167568, "percentage": 25.96, "elapsed_time": "15:16:35", "remaining_time": "1 day, 19:34:28"}
|
| 85 |
+
{"current_steps": 850, "total_steps": 3236, "loss": 0.0076, "lr": 1.8438419972731066e-05, "epoch": 0.5255835523264801, "percentage": 26.27, "elapsed_time": "15:27:14", "remaining_time": "1 day, 19:22:50"}
|
| 86 |
+
{"current_steps": 860, "total_steps": 3236, "loss": 0.0079, "lr": 1.8380040168166096e-05, "epoch": 0.5317668882362034, "percentage": 26.58, "elapsed_time": "15:37:59", "remaining_time": "1 day, 19:11:29"}
|
| 87 |
+
{"current_steps": 870, "total_steps": 3236, "loss": 0.0077, "lr": 1.8320685017185832e-05, "epoch": 0.5379502241459267, "percentage": 26.89, "elapsed_time": "15:48:44", "remaining_time": "1 day, 19:00:08"}
|
| 88 |
+
{"current_steps": 880, "total_steps": 3236, "loss": 0.0077, "lr": 1.8260361428090542e-05, "epoch": 0.5441335600556501, "percentage": 27.19, "elapsed_time": "15:59:25", "remaining_time": "1 day, 18:48:37"}
|
| 89 |
+
{"current_steps": 890, "total_steps": 3236, "loss": 0.0075, "lr": 1.8199076421896256e-05, "epoch": 0.5503168959653734, "percentage": 27.5, "elapsed_time": "16:10:07", "remaining_time": "1 day, 18:37:11"}
|
| 90 |
+
{"current_steps": 900, "total_steps": 3236, "loss": 0.0076, "lr": 1.813683713151761e-05, "epoch": 0.5565002318750966, "percentage": 27.81, "elapsed_time": "16:20:49", "remaining_time": "1 day, 18:25:47"}
|