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 1500
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:a8746240f62131bdf4c7faf1e669efe56686649efd64c5df6231f3d86e15db69
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -138,3 +138,13 @@
|
|
| 138 |
{"current_steps": 1380, "total_steps": 3886, "loss": 0.0155, "lr": 1.6298903880848836e-05, "epoch": 0.710333290438811, "percentage": 35.51, "elapsed_time": "21:29:30", "remaining_time": "1 day, 15:01:39"}
|
| 139 |
{"current_steps": 1390, "total_steps": 3886, "loss": 0.0152, "lr": 1.6228875836438386e-05, "epoch": 0.7154806331231501, "percentage": 35.77, "elapsed_time": "21:38:48", "remaining_time": "1 day, 14:52:14"}
|
| 140 |
{"current_steps": 1400, "total_steps": 3886, "loss": 0.0148, "lr": 1.615834508467931e-05, "epoch": 0.7206279758074894, "percentage": 36.03, "elapsed_time": "21:47:52", "remaining_time": "1 day, 14:42:25"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 138 |
{"current_steps": 1380, "total_steps": 3886, "loss": 0.0155, "lr": 1.6298903880848836e-05, "epoch": 0.710333290438811, "percentage": 35.51, "elapsed_time": "21:29:30", "remaining_time": "1 day, 15:01:39"}
|
| 139 |
{"current_steps": 1390, "total_steps": 3886, "loss": 0.0152, "lr": 1.6228875836438386e-05, "epoch": 0.7154806331231501, "percentage": 35.77, "elapsed_time": "21:38:48", "remaining_time": "1 day, 14:52:14"}
|
| 140 |
{"current_steps": 1400, "total_steps": 3886, "loss": 0.0148, "lr": 1.615834508467931e-05, "epoch": 0.7206279758074894, "percentage": 36.03, "elapsed_time": "21:47:52", "remaining_time": "1 day, 14:42:25"}
|
| 141 |
+
{"current_steps": 1410, "total_steps": 3886, "loss": 0.0156, "lr": 1.608731731782301e-05, "epoch": 0.7257753184918286, "percentage": 36.28, "elapsed_time": "21:58:43", "remaining_time": "1 day, 14:35:42"}
|
| 142 |
+
{"current_steps": 1420, "total_steps": 3886, "loss": 0.0158, "lr": 1.6015798268232964e-05, "epoch": 0.7309226611761678, "percentage": 36.54, "elapsed_time": "22:07:53", "remaining_time": "1 day, 14:26:02"}
|
| 143 |
+
{"current_steps": 1430, "total_steps": 3886, "loss": 0.0144, "lr": 1.5943793707922086e-05, "epoch": 0.736070003860507, "percentage": 36.8, "elapsed_time": "22:17:00", "remaining_time": "1 day, 14:16:17"}
|
| 144 |
+
{"current_steps": 1440, "total_steps": 3886, "loss": 0.0158, "lr": 1.5871309448086903e-05, "epoch": 0.7412173465448463, "percentage": 37.06, "elapsed_time": "22:26:09", "remaining_time": "1 day, 14:06:36"}
|
| 145 |
+
{"current_steps": 1450, "total_steps": 3886, "loss": 0.0148, "lr": 1.5798351338638548e-05, "epoch": 0.7463646892291854, "percentage": 37.31, "elapsed_time": "22:35:21", "remaining_time": "1 day, 13:57:00"}
|
| 146 |
+
{"current_steps": 1460, "total_steps": 3886, "loss": 0.0156, "lr": 1.5724925267730625e-05, "epoch": 0.7515120319135247, "percentage": 37.57, "elapsed_time": "22:44:43", "remaining_time": "1 day, 13:47:40"}
|
| 147 |
+
{"current_steps": 1470, "total_steps": 3886, "loss": 0.0155, "lr": 1.5651037161284032e-05, "epoch": 0.7566593745978638, "percentage": 37.83, "elapsed_time": "22:53:58", "remaining_time": "1 day, 13:38:10"}
|
| 148 |
+
{"current_steps": 1480, "total_steps": 3886, "loss": 0.0149, "lr": 1.5576692982508665e-05, "epoch": 0.7618067172822031, "percentage": 38.09, "elapsed_time": "23:03:04", "remaining_time": "1 day, 13:28:26"}
|
| 149 |
+
{"current_steps": 1490, "total_steps": 3886, "loss": 0.0149, "lr": 1.550189873142219e-05, "epoch": 0.7669540599665423, "percentage": 38.34, "elapsed_time": "23:12:16", "remaining_time": "1 day, 13:18:50"}
|
| 150 |
+
{"current_steps": 1500, "total_steps": 3886, "loss": 0.0147, "lr": 1.542666044436577e-05, "epoch": 0.7721014026508815, "percentage": 38.6, "elapsed_time": "23:21:26", "remaining_time": "1 day, 13:09:13"}
|