Text Generation
Transformers
Safetensors
qwen2
llama-factory
Generated from Trainer
conversational
text-generation-inference
Instructions to use adpretko/train-riscv-O2_epoch1and2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use adpretko/train-riscv-O2_epoch1and2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="adpretko/train-riscv-O2_epoch1and2") 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-riscv-O2_epoch1and2") model = AutoModelForCausalLM.from_pretrained("adpretko/train-riscv-O2_epoch1and2", 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-riscv-O2_epoch1and2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "adpretko/train-riscv-O2_epoch1and2" # 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-riscv-O2_epoch1and2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/adpretko/train-riscv-O2_epoch1and2
- SGLang
How to use adpretko/train-riscv-O2_epoch1and2 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-riscv-O2_epoch1and2" \ --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-riscv-O2_epoch1and2", "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-riscv-O2_epoch1and2" \ --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-riscv-O2_epoch1and2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use adpretko/train-riscv-O2_epoch1and2 with Docker Model Runner:
docker model run hf.co/adpretko/train-riscv-O2_epoch1and2
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:e6a4971cb3a90bc65fa60a28af35a7a74c3b5d56e4ad26b2a05f94c8fadf5637
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -8,3 +8,13 @@
|
|
| 8 |
{"current_steps": 80, "total_steps": 3886, "loss": 0.0885, "lr": 4.0616966580976866e-06, "epoch": 0.041178741474713676, "percentage": 2.06, "elapsed_time": "1:14:31", "remaining_time": "2 days, 11:05:32"}
|
| 9 |
{"current_steps": 90, "total_steps": 3886, "loss": 0.078, "lr": 4.575835475578407e-06, "epoch": 0.04632608415905289, "percentage": 2.32, "elapsed_time": "1:23:54", "remaining_time": "2 days, 10:59:17"}
|
| 10 |
{"current_steps": 100, "total_steps": 3886, "loss": 0.0728, "lr": 5.0899742930591265e-06, "epoch": 0.0514734268433921, "percentage": 2.57, "elapsed_time": "1:33:23", "remaining_time": "2 days, 10:55:52"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
{"current_steps": 80, "total_steps": 3886, "loss": 0.0885, "lr": 4.0616966580976866e-06, "epoch": 0.041178741474713676, "percentage": 2.06, "elapsed_time": "1:14:31", "remaining_time": "2 days, 11:05:32"}
|
| 9 |
{"current_steps": 90, "total_steps": 3886, "loss": 0.078, "lr": 4.575835475578407e-06, "epoch": 0.04632608415905289, "percentage": 2.32, "elapsed_time": "1:23:54", "remaining_time": "2 days, 10:59:17"}
|
| 10 |
{"current_steps": 100, "total_steps": 3886, "loss": 0.0728, "lr": 5.0899742930591265e-06, "epoch": 0.0514734268433921, "percentage": 2.57, "elapsed_time": "1:33:23", "remaining_time": "2 days, 10:55:52"}
|
| 11 |
+
{"current_steps": 110, "total_steps": 3886, "loss": 0.0652, "lr": 5.604113110539846e-06, "epoch": 0.05662076952773131, "percentage": 2.83, "elapsed_time": "1:44:02", "remaining_time": "2 days, 11:31:22"}
|
| 12 |
+
{"current_steps": 120, "total_steps": 3886, "loss": 0.0611, "lr": 6.1182519280205664e-06, "epoch": 0.06176811221207052, "percentage": 3.09, "elapsed_time": "1:53:21", "remaining_time": "2 days, 11:17:44"}
|
| 13 |
+
{"current_steps": 130, "total_steps": 3886, "loss": 0.0578, "lr": 6.632390745501286e-06, "epoch": 0.06691545489640972, "percentage": 3.35, "elapsed_time": "2:02:31", "remaining_time": "2 days, 11:00:03"}
|
| 14 |
+
{"current_steps": 140, "total_steps": 3886, "loss": 0.0565, "lr": 7.1465295629820055e-06, "epoch": 0.07206279758074893, "percentage": 3.6, "elapsed_time": "2:11:48", "remaining_time": "2 days, 10:46:37"}
|
| 15 |
+
{"current_steps": 150, "total_steps": 3886, "loss": 0.0518, "lr": 7.660668380462726e-06, "epoch": 0.07721014026508814, "percentage": 3.86, "elapsed_time": "2:20:40", "remaining_time": "2 days, 10:23:47"}
|
| 16 |
+
{"current_steps": 160, "total_steps": 3886, "loss": 0.0506, "lr": 8.174807197943445e-06, "epoch": 0.08235748294942735, "percentage": 4.12, "elapsed_time": "2:29:40", "remaining_time": "2 days, 10:05:31"}
|
| 17 |
+
{"current_steps": 170, "total_steps": 3886, "loss": 0.0505, "lr": 8.688946015424165e-06, "epoch": 0.08750482563376656, "percentage": 4.37, "elapsed_time": "2:38:52", "remaining_time": "2 days, 9:52:40"}
|
| 18 |
+
{"current_steps": 180, "total_steps": 3886, "loss": 0.0454, "lr": 9.203084832904885e-06, "epoch": 0.09265216831810578, "percentage": 4.63, "elapsed_time": "2:48:05", "remaining_time": "2 days, 9:40:41"}
|
| 19 |
+
{"current_steps": 190, "total_steps": 3886, "loss": 0.0443, "lr": 9.717223650385606e-06, "epoch": 0.097799511002445, "percentage": 4.89, "elapsed_time": "2:57:15", "remaining_time": "2 days, 9:28:07"}
|
| 20 |
+
{"current_steps": 200, "total_steps": 3886, "loss": 0.0421, "lr": 1.0231362467866324e-05, "epoch": 0.1029468536867842, "percentage": 5.15, "elapsed_time": "3:06:26", "remaining_time": "2 days, 9:16:12"}
|