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 3200
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:9f90c623c7fe95ae00662f072e6ecb87fa5e5178e1087a3301cd77882be5a08c
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -28,3 +28,13 @@
|
|
| 28 |
{"current_steps": 3080, "total_steps": 3886, "loss": 0.0097, "lr": 2.514892518288988e-06, "epoch": 1.585252863209368, "percentage": 79.26, "elapsed_time": "4:21:22", "remaining_time": "1:08:23"}
|
| 29 |
{"current_steps": 3090, "total_steps": 3886, "loss": 0.0099, "lr": 2.4556225529366316e-06, "epoch": 1.5904002058937072, "percentage": 79.52, "elapsed_time": "4:30:39", "remaining_time": "1:09:43"}
|
| 30 |
{"current_steps": 3100, "total_steps": 3886, "loss": 0.0107, "lr": 2.3969614637415474e-06, "epoch": 1.5955475485780466, "percentage": 79.77, "elapsed_time": "4:39:44", "remaining_time": "1:10:55"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
{"current_steps": 3080, "total_steps": 3886, "loss": 0.0097, "lr": 2.514892518288988e-06, "epoch": 1.585252863209368, "percentage": 79.26, "elapsed_time": "4:21:22", "remaining_time": "1:08:23"}
|
| 29 |
{"current_steps": 3090, "total_steps": 3886, "loss": 0.0099, "lr": 2.4556225529366316e-06, "epoch": 1.5904002058937072, "percentage": 79.52, "elapsed_time": "4:30:39", "remaining_time": "1:09:43"}
|
| 30 |
{"current_steps": 3100, "total_steps": 3886, "loss": 0.0107, "lr": 2.3969614637415474e-06, "epoch": 1.5955475485780466, "percentage": 79.77, "elapsed_time": "4:39:44", "remaining_time": "1:10:55"}
|
| 31 |
+
{"current_steps": 3110, "total_steps": 3886, "loss": 0.0104, "lr": 2.338913985002739e-06, "epoch": 1.600694891262386, "percentage": 80.03, "elapsed_time": "4:50:49", "remaining_time": "1:12:33"}
|
| 32 |
+
{"current_steps": 3120, "total_steps": 3886, "loss": 0.0099, "lr": 2.281484801497186e-06, "epoch": 1.605842233946725, "percentage": 80.29, "elapsed_time": "5:00:04", "remaining_time": "1:13:40"}
|
| 33 |
+
{"current_steps": 3130, "total_steps": 3886, "loss": 0.0104, "lr": 2.224678548101762e-06, "epoch": 1.6109895766310642, "percentage": 80.55, "elapsed_time": "5:09:13", "remaining_time": "1:14:41"}
|
| 34 |
+
{"current_steps": 3140, "total_steps": 3886, "loss": 0.0102, "lr": 2.168499809419177e-06, "epoch": 1.6161369193154034, "percentage": 80.8, "elapsed_time": "5:18:23", "remaining_time": "1:15:38"}
|
| 35 |
+
{"current_steps": 3150, "total_steps": 3886, "loss": 0.0101, "lr": 2.1129531194079656e-06, "epoch": 1.6212842619997425, "percentage": 81.06, "elapsed_time": "5:27:28", "remaining_time": "1:16:30"}
|
| 36 |
+
{"current_steps": 3160, "total_steps": 3886, "loss": 0.0102, "lr": 2.0580429610165763e-06, "epoch": 1.6264316046840819, "percentage": 81.32, "elapsed_time": "5:36:32", "remaining_time": "1:17:19"}
|
| 37 |
+
{"current_steps": 3170, "total_steps": 3886, "loss": 0.0098, "lr": 2.0037737658215684e-06, "epoch": 1.631578947368421, "percentage": 81.57, "elapsed_time": "5:45:45", "remaining_time": "1:18:05"}
|
| 38 |
+
{"current_steps": 3180, "total_steps": 3886, "loss": 0.0115, "lr": 1.950149913669953e-06, "epoch": 1.6367262900527604, "percentage": 81.83, "elapsed_time": "5:55:13", "remaining_time": "1:18:51"}
|
| 39 |
+
{"current_steps": 3190, "total_steps": 3886, "loss": 0.0097, "lr": 1.89717573232572e-06, "epoch": 1.6418736327370995, "percentage": 82.09, "elapsed_time": "6:04:27", "remaining_time": "1:19:30"}
|
| 40 |
+
{"current_steps": 3200, "total_steps": 3886, "loss": 0.0098, "lr": 1.844855497120558e-06, "epoch": 1.6470209754214387, "percentage": 82.35, "elapsed_time": "6:13:24", "remaining_time": "1:20:03"}
|