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)# pip install -U transformers accelerate # 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", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - 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 2200
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:7680e923ed786e89fc2cb03c6aaa5cb66a8f1d1f0879efa960b26c8c68a20307
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -208,3 +208,13 @@
|
|
| 208 |
{"current_steps": 2080, "total_steps": 3886, "loss": 0.012, "lr": 1.0525303348791599e-05, "epoch": 1.0705185947754472, "percentage": 53.53, "elapsed_time": "1 day, 8:24:41", "remaining_time": "1 day, 4:08:31"}
|
| 209 |
{"current_steps": 2090, "total_steps": 3886, "loss": 0.0126, "lr": 1.0435570599969168e-05, "epoch": 1.0756659374597863, "percentage": 53.78, "elapsed_time": "1 day, 8:33:54", "remaining_time": "1 day, 3:59:03"}
|
| 210 |
{"current_steps": 2100, "total_steps": 3886, "loss": 0.0127, "lr": 1.0345802698007198e-05, "epoch": 1.0808132801441257, "percentage": 54.04, "elapsed_time": "1 day, 8:43:06", "remaining_time": "1 day, 3:49:34"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 208 |
{"current_steps": 2080, "total_steps": 3886, "loss": 0.012, "lr": 1.0525303348791599e-05, "epoch": 1.0705185947754472, "percentage": 53.53, "elapsed_time": "1 day, 8:24:41", "remaining_time": "1 day, 4:08:31"}
|
| 209 |
{"current_steps": 2090, "total_steps": 3886, "loss": 0.0126, "lr": 1.0435570599969168e-05, "epoch": 1.0756659374597863, "percentage": 53.78, "elapsed_time": "1 day, 8:33:54", "remaining_time": "1 day, 3:59:03"}
|
| 210 |
{"current_steps": 2100, "total_steps": 3886, "loss": 0.0127, "lr": 1.0345802698007198e-05, "epoch": 1.0808132801441257, "percentage": 54.04, "elapsed_time": "1 day, 8:43:06", "remaining_time": "1 day, 3:49:34"}
|
| 211 |
+
{"current_steps": 2110, "total_steps": 3886, "loss": 0.0115, "lr": 1.0256006887709593e-05, "epoch": 1.0859606228284648, "percentage": 54.3, "elapsed_time": "1 day, 8:53:48", "remaining_time": "1 day, 3:41:22"}
|
| 212 |
+
{"current_steps": 2120, "total_steps": 3886, "loss": 0.0125, "lr": 1.016619041613263e-05, "epoch": 1.091107965512804, "percentage": 54.55, "elapsed_time": "1 day, 9:03:04", "remaining_time": "1 day, 3:31:56"}
|
| 213 |
+
{"current_steps": 2130, "total_steps": 3886, "loss": 0.0126, "lr": 1.0076360532000069e-05, "epoch": 1.0962553081971431, "percentage": 54.81, "elapsed_time": "1 day, 9:12:24", "remaining_time": "1 day, 3:22:33"}
|
| 214 |
+
{"current_steps": 2140, "total_steps": 3886, "loss": 0.0119, "lr": 9.986524485118152e-06, "epoch": 1.1014026508814825, "percentage": 55.07, "elapsed_time": "1 day, 9:21:28", "remaining_time": "1 day, 3:12:59"}
|
| 215 |
+
{"current_steps": 2150, "total_steps": 3886, "loss": 0.013, "lr": 9.896689525790474e-06, "epoch": 1.1065499935658216, "percentage": 55.33, "elapsed_time": "1 day, 9:30:46", "remaining_time": "1 day, 3:03:34"}
|
| 216 |
+
{"current_steps": 2160, "total_steps": 3886, "loss": 0.0118, "lr": 9.80686290423288e-06, "epoch": 1.1116973362501608, "percentage": 55.58, "elapsed_time": "1 day, 9:40:01", "remaining_time": "1 day, 2:54:08"}
|
| 217 |
+
{"current_steps": 2170, "total_steps": 3886, "loss": 0.0122, "lr": 9.717051869988287e-06, "epoch": 1.1168446789345001, "percentage": 55.84, "elapsed_time": "1 day, 9:49:12", "remaining_time": "1 day, 2:44:40"}
|
| 218 |
+
{"current_steps": 2180, "total_steps": 3886, "loss": 0.012, "lr": 9.627263671341638e-06, "epoch": 1.1219920216188393, "percentage": 56.1, "elapsed_time": "1 day, 9:58:18", "remaining_time": "1 day, 2:35:06"}
|
| 219 |
+
{"current_steps": 2190, "total_steps": 3886, "loss": 0.0126, "lr": 9.537505554734901e-06, "epoch": 1.1271393643031784, "percentage": 56.36, "elapsed_time": "1 day, 10:07:30", "remaining_time": "1 day, 2:25:39"}
|
| 220 |
+
{"current_steps": 2200, "total_steps": 3886, "loss": 0.0121, "lr": 9.447784764182247e-06, "epoch": 1.1322867069875178, "percentage": 56.61, "elapsed_time": "1 day, 10:16:38", "remaining_time": "1 day, 2:16:07"}
|