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 3800
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:1b5efb4b71ab5f052dbf8615c5024a2e44383c8a3c81433fbbf5f0a65110a795
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -88,3 +88,13 @@
|
|
| 88 |
{"current_steps": 3680, "total_steps": 3886, "loss": 0.0101, "lr": 1.724119062189189e-07, "epoch": 1.8940934242697207, "percentage": 94.7, "elapsed_time": "13:43:16", "remaining_time": "0:46:05"}
|
| 89 |
{"current_steps": 3690, "total_steps": 3886, "loss": 0.0094, "lr": 1.561985804892585e-07, "epoch": 1.89924076695406, "percentage": 94.96, "elapsed_time": "13:52:30", "remaining_time": "0:44:13"}
|
| 90 |
{"current_steps": 3700, "total_steps": 3886, "loss": 0.0095, "lr": 1.4077970811554153e-07, "epoch": 1.9043881096383992, "percentage": 95.21, "elapsed_time": "14:01:38", "remaining_time": "0:42:18"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
{"current_steps": 3680, "total_steps": 3886, "loss": 0.0101, "lr": 1.724119062189189e-07, "epoch": 1.8940934242697207, "percentage": 94.7, "elapsed_time": "13:43:16", "remaining_time": "0:46:05"}
|
| 89 |
{"current_steps": 3690, "total_steps": 3886, "loss": 0.0094, "lr": 1.561985804892585e-07, "epoch": 1.89924076695406, "percentage": 94.96, "elapsed_time": "13:52:30", "remaining_time": "0:44:13"}
|
| 90 |
{"current_steps": 3700, "total_steps": 3886, "loss": 0.0095, "lr": 1.4077970811554153e-07, "epoch": 1.9043881096383992, "percentage": 95.21, "elapsed_time": "14:01:38", "remaining_time": "0:42:18"}
|
| 91 |
+
{"current_steps": 3710, "total_steps": 3886, "loss": 0.0104, "lr": 1.2615653349252743e-07, "epoch": 1.9095354523227384, "percentage": 95.47, "elapsed_time": "14:12:20", "remaining_time": "0:40:26"}
|
| 92 |
+
{"current_steps": 3720, "total_steps": 3886, "loss": 0.01, "lr": 1.1233023679743326e-07, "epoch": 1.9146827950070775, "percentage": 95.73, "elapsed_time": "14:21:28", "remaining_time": "0:38:26"}
|
| 93 |
+
{"current_steps": 3730, "total_steps": 3886, "loss": 0.0097, "lr": 9.930193389468323e-08, "epoch": 1.9198301376914169, "percentage": 95.99, "elapsed_time": "14:30:37", "remaining_time": "0:36:24"}
|
| 94 |
+
{"current_steps": 3740, "total_steps": 3886, "loss": 0.0101, "lr": 8.707267624585292e-08, "epoch": 1.924977480375756, "percentage": 96.24, "elapsed_time": "14:39:55", "remaining_time": "0:34:21"}
|
| 95 |
+
{"current_steps": 3750, "total_steps": 3886, "loss": 0.0099, "lr": 7.564345082481383e-08, "epoch": 1.9301248230600954, "percentage": 96.5, "elapsed_time": "14:49:14", "remaining_time": "0:32:14"}
|
| 96 |
+
{"current_steps": 3760, "total_steps": 3886, "loss": 0.0099, "lr": 6.501518003807272e-08, "epoch": 1.9352721657444345, "percentage": 96.76, "elapsed_time": "14:58:23", "remaining_time": "0:30:06"}
|
| 97 |
+
{"current_steps": 3770, "total_steps": 3886, "loss": 0.0097, "lr": 5.518872165033329e-08, "epoch": 1.9404195084287736, "percentage": 97.01, "elapsed_time": "15:07:38", "remaining_time": "0:27:55"}
|
| 98 |
+
{"current_steps": 3780, "total_steps": 3886, "loss": 0.0093, "lr": 4.6164868715263825e-08, "epoch": 1.9455668511131128, "percentage": 97.27, "elapsed_time": "15:16:52", "remaining_time": "0:25:42"}
|
| 99 |
+
{"current_steps": 3790, "total_steps": 3886, "loss": 0.0104, "lr": 3.79443495114995e-08, "epoch": 1.950714193797452, "percentage": 97.53, "elapsed_time": "15:26:05", "remaining_time": "0:23:27"}
|
| 100 |
+
{"current_steps": 3800, "total_steps": 3886, "loss": 0.0094, "lr": 3.052782748386052e-08, "epoch": 1.9558615364817913, "percentage": 97.79, "elapsed_time": "15:35:18", "remaining_time": "0:21:10"}
|