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 3700
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:14658d23a47e567dec7f391fad9bd95ca463ee837f94b05a471a908da5dd178b
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -78,3 +78,13 @@
|
|
| 78 |
{"current_steps": 3580, "total_steps": 3886, "loss": 0.0101, "lr": 3.779206322713913e-07, "epoch": 1.8426199974263286, "percentage": 92.13, "elapsed_time": "12:09:22", "remaining_time": "1:02:20"}
|
| 79 |
{"current_steps": 3590, "total_steps": 3886, "loss": 0.0101, "lr": 3.5384526410180085e-07, "epoch": 1.8477673401106678, "percentage": 92.38, "elapsed_time": "12:18:25", "remaining_time": "1:00:53"}
|
| 80 |
{"current_steps": 3600, "total_steps": 3886, "loss": 0.0097, "lr": 3.305483980245716e-07, "epoch": 1.852914682795007, "percentage": 92.64, "elapsed_time": "12:27:37", "remaining_time": "0:59:23"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
{"current_steps": 3580, "total_steps": 3886, "loss": 0.0101, "lr": 3.779206322713913e-07, "epoch": 1.8426199974263286, "percentage": 92.13, "elapsed_time": "12:09:22", "remaining_time": "1:02:20"}
|
| 79 |
{"current_steps": 3590, "total_steps": 3886, "loss": 0.0101, "lr": 3.5384526410180085e-07, "epoch": 1.8477673401106678, "percentage": 92.38, "elapsed_time": "12:18:25", "remaining_time": "1:00:53"}
|
| 80 |
{"current_steps": 3600, "total_steps": 3886, "loss": 0.0097, "lr": 3.305483980245716e-07, "epoch": 1.852914682795007, "percentage": 92.64, "elapsed_time": "12:27:37", "remaining_time": "0:59:23"}
|
| 81 |
+
{"current_steps": 3610, "total_steps": 3886, "loss": 0.0104, "lr": 3.080319142354393e-07, "epoch": 1.8580620254793463, "percentage": 92.9, "elapsed_time": "12:38:38", "remaining_time": "0:58:00"}
|
| 82 |
+
{"current_steps": 3620, "total_steps": 3886, "loss": 0.0104, "lr": 2.8629762994864195e-07, "epoch": 1.8632093681636857, "percentage": 93.15, "elapsed_time": "12:47:59", "remaining_time": "0:56:25"}
|
| 83 |
+
{"current_steps": 3630, "total_steps": 3886, "loss": 0.0096, "lr": 2.653472992502648e-07, "epoch": 1.8683567108480248, "percentage": 93.41, "elapsed_time": "12:57:06", "remaining_time": "0:54:48"}
|
| 84 |
+
{"current_steps": 3640, "total_steps": 3886, "loss": 0.01, "lr": 2.4518261295667255e-07, "epoch": 1.873504053532364, "percentage": 93.67, "elapsed_time": "13:06:20", "remaining_time": "0:53:08"}
|
| 85 |
+
{"current_steps": 3650, "total_steps": 3886, "loss": 0.0098, "lr": 2.2580519847805182e-07, "epoch": 1.878651396216703, "percentage": 93.93, "elapsed_time": "13:15:35", "remaining_time": "0:51:26"}
|
| 86 |
+
{"current_steps": 3660, "total_steps": 3886, "loss": 0.01, "lr": 2.072166196870673e-07, "epoch": 1.8837987389010422, "percentage": 94.18, "elapsed_time": "13:24:39", "remaining_time": "0:49:41"}
|
| 87 |
+
{"current_steps": 3670, "total_steps": 3886, "loss": 0.0099, "lr": 1.894183767926494e-07, "epoch": 1.8889460815853816, "percentage": 94.44, "elapsed_time": "13:34:01", "remaining_time": "0:47:54"}
|
| 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"}
|