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 3500
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:267505a98c92eac6b99abaf28800fbcaa0e69ee47d636bbb813826fdf6d01b41
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -58,3 +58,13 @@
|
|
| 58 |
{"current_steps": 3380, "total_steps": 3886, "loss": 0.0094, "lr": 1.0194673599976134e-06, "epoch": 1.7396731437395445, "percentage": 86.98, "elapsed_time": "9:01:58", "remaining_time": "1:21:08"}
|
| 59 |
{"current_steps": 3390, "total_steps": 3886, "loss": 0.0105, "lr": 9.803122696547473e-07, "epoch": 1.7448204864238837, "percentage": 87.24, "elapsed_time": "9:11:11", "remaining_time": "1:20:38"}
|
| 60 |
{"current_steps": 3400, "total_steps": 3886, "loss": 0.0104, "lr": 9.418851217887337e-07, "epoch": 1.7499678291082228, "percentage": 87.49, "elapsed_time": "9:20:26", "remaining_time": "1:20:06"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
{"current_steps": 3380, "total_steps": 3886, "loss": 0.0094, "lr": 1.0194673599976134e-06, "epoch": 1.7396731437395445, "percentage": 86.98, "elapsed_time": "9:01:58", "remaining_time": "1:21:08"}
|
| 59 |
{"current_steps": 3390, "total_steps": 3886, "loss": 0.0105, "lr": 9.803122696547473e-07, "epoch": 1.7448204864238837, "percentage": 87.24, "elapsed_time": "9:11:11", "remaining_time": "1:20:38"}
|
| 60 |
{"current_steps": 3400, "total_steps": 3886, "loss": 0.0104, "lr": 9.418851217887337e-07, "epoch": 1.7499678291082228, "percentage": 87.49, "elapsed_time": "9:20:26", "remaining_time": "1:20:06"}
|
| 61 |
+
{"current_steps": 3410, "total_steps": 3886, "loss": 0.01, "lr": 9.041890176990876e-07, "epoch": 1.755115171792562, "percentage": 87.75, "elapsed_time": "9:31:32", "remaining_time": "1:19:46"}
|
| 62 |
+
{"current_steps": 3420, "total_steps": 3886, "loss": 0.0102, "lr": 8.672269996857375e-07, "epoch": 1.7602625144769013, "percentage": 88.01, "elapsed_time": "9:40:39", "remaining_time": "1:19:07"}
|
| 63 |
+
{"current_steps": 3430, "total_steps": 3886, "loss": 0.0101, "lr": 8.310020508035055e-07, "epoch": 1.7654098571612407, "percentage": 88.27, "elapsed_time": "9:49:49", "remaining_time": "1:18:24"}
|
| 64 |
+
{"current_steps": 3440, "total_steps": 3886, "loss": 0.0097, "lr": 7.955170946213442e-07, "epoch": 1.7705571998455798, "percentage": 88.52, "elapsed_time": "9:59:04", "remaining_time": "1:17:40"}
|
| 65 |
+
{"current_steps": 3450, "total_steps": 3886, "loss": 0.0099, "lr": 7.607749949863907e-07, "epoch": 1.775704542529919, "percentage": 88.78, "elapsed_time": "10:08:11", "remaining_time": "1:16:51"}
|
| 66 |
+
{"current_steps": 3460, "total_steps": 3886, "loss": 0.0097, "lr": 7.267785557928398e-07, "epoch": 1.780851885214258, "percentage": 89.04, "elapsed_time": "10:17:28", "remaining_time": "1:16:01"}
|
| 67 |
+
{"current_steps": 3470, "total_steps": 3886, "loss": 0.0101, "lr": 6.935305207556509e-07, "epoch": 1.7859992278985972, "percentage": 89.29, "elapsed_time": "10:26:39", "remaining_time": "1:15:07"}
|
| 68 |
+
{"current_steps": 3480, "total_steps": 3886, "loss": 0.0098, "lr": 6.610335731891116e-07, "epoch": 1.7911465705829366, "percentage": 89.55, "elapsed_time": "10:35:54", "remaining_time": "1:14:11"}
|
| 69 |
+
{"current_steps": 3490, "total_steps": 3886, "loss": 0.0102, "lr": 6.292903357902846e-07, "epoch": 1.7962939132672757, "percentage": 89.81, "elapsed_time": "10:45:08", "remaining_time": "1:13:12"}
|
| 70 |
+
{"current_steps": 3500, "total_steps": 3886, "loss": 0.0099, "lr": 5.983033704273355e-07, "epoch": 1.801441255951615, "percentage": 90.07, "elapsed_time": "10:54:18", "remaining_time": "1:12:09"}
|