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)# 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") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- 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 2800
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:3b5236a80d770d0ce8756b7e9d6a4b8e6878d54a5bf52c01f09d6a3f298374e5
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -268,3 +268,13 @@
|
|
| 268 |
{"current_steps": 2680, "total_steps": 3886, "loss": 0.0118, "lr": 5.324950012541372e-06, "epoch": 1.3793591558357998, "percentage": 68.97, "elapsed_time": "1 day, 17:45:23", "remaining_time": "18:47:25"}
|
| 269 |
{"current_steps": 2690, "total_steps": 3886, "loss": 0.0116, "lr": 5.245724867809326e-06, "epoch": 1.384506498520139, "percentage": 69.22, "elapsed_time": "1 day, 17:54:28", "remaining_time": "18:37:57"}
|
| 270 |
{"current_steps": 2700, "total_steps": 3886, "loss": 0.0116, "lr": 5.166883421373583e-06, "epoch": 1.389653841204478, "percentage": 69.48, "elapsed_time": "1 day, 18:03:31", "remaining_time": "18:28:29"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 268 |
{"current_steps": 2680, "total_steps": 3886, "loss": 0.0118, "lr": 5.324950012541372e-06, "epoch": 1.3793591558357998, "percentage": 68.97, "elapsed_time": "1 day, 17:45:23", "remaining_time": "18:47:25"}
|
| 269 |
{"current_steps": 2690, "total_steps": 3886, "loss": 0.0116, "lr": 5.245724867809326e-06, "epoch": 1.384506498520139, "percentage": 69.22, "elapsed_time": "1 day, 17:54:28", "remaining_time": "18:37:57"}
|
| 270 |
{"current_steps": 2700, "total_steps": 3886, "loss": 0.0116, "lr": 5.166883421373583e-06, "epoch": 1.389653841204478, "percentage": 69.48, "elapsed_time": "1 day, 18:03:31", "remaining_time": "18:28:29"}
|
| 271 |
+
{"current_steps": 2710, "total_steps": 3886, "loss": 0.0112, "lr": 5.088432036208075e-06, "epoch": 1.3948011838888175, "percentage": 69.74, "elapsed_time": "1 day, 18:14:17", "remaining_time": "18:19:45"}
|
| 272 |
+
{"current_steps": 2720, "total_steps": 3886, "loss": 0.0102, "lr": 5.010377043806443e-06, "epoch": 1.3999485265731566, "percentage": 69.99, "elapsed_time": "1 day, 18:23:22", "remaining_time": "18:10:17"}
|
| 273 |
+
{"current_steps": 2730, "total_steps": 3886, "loss": 0.0113, "lr": 4.932724743671089e-06, "epoch": 1.4050958692574957, "percentage": 70.25, "elapsed_time": "1 day, 18:32:32", "remaining_time": "18:00:51"}
|
| 274 |
+
{"current_steps": 2740, "total_steps": 3886, "loss": 0.0114, "lr": 4.8554814028047605e-06, "epoch": 1.410243211941835, "percentage": 70.51, "elapsed_time": "1 day, 18:41:39", "remaining_time": "17:51:24"}
|
| 275 |
+
{"current_steps": 2750, "total_steps": 3886, "loss": 0.012, "lr": 4.778653255204733e-06, "epoch": 1.4153905546261742, "percentage": 70.77, "elapsed_time": "1 day, 18:50:49", "remaining_time": "17:41:59"}
|
| 276 |
+
{"current_steps": 2760, "total_steps": 3886, "loss": 0.0108, "lr": 4.702246501359739e-06, "epoch": 1.4205378973105134, "percentage": 71.02, "elapsed_time": "1 day, 18:59:53", "remaining_time": "17:32:31"}
|
| 277 |
+
{"current_steps": 2770, "total_steps": 3886, "loss": 0.0113, "lr": 4.626267307749519e-06, "epoch": 1.4256852399948525, "percentage": 71.28, "elapsed_time": "1 day, 19:09:05", "remaining_time": "17:23:06"}
|
| 278 |
+
{"current_steps": 2780, "total_steps": 3886, "loss": 0.0117, "lr": 4.550721806347146e-06, "epoch": 1.4308325826791919, "percentage": 71.54, "elapsed_time": "1 day, 19:18:14", "remaining_time": "17:13:41"}
|
| 279 |
+
{"current_steps": 2790, "total_steps": 3886, "loss": 0.0114, "lr": 4.475616094124171e-06, "epoch": 1.435979925363531, "percentage": 71.8, "elapsed_time": "1 day, 19:27:23", "remaining_time": "17:04:15"}
|
| 280 |
+
{"current_steps": 2800, "total_steps": 3886, "loss": 0.0111, "lr": 4.40095623255853e-06, "epoch": 1.4411272680478704, "percentage": 72.05, "elapsed_time": "1 day, 19:36:36", "remaining_time": "16:54:52"}
|