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 1300
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:b1d92059d5a79c82f715e78eeb06cc346ff6920c77042f144bfe443bc38b793a
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -118,3 +118,13 @@
|
|
| 118 |
{"current_steps": 1180, "total_steps": 3886, "loss": 0.0162, "lr": 1.7585504424141483e-05, "epoch": 0.6073864367520267, "percentage": 30.37, "elapsed_time": "18:22:49", "remaining_time": "1 day, 18:09:01"}
|
| 119 |
{"current_steps": 1190, "total_steps": 3886, "loss": 0.0167, "lr": 1.752666017275453e-05, "epoch": 0.612533779436366, "percentage": 30.62, "elapsed_time": "18:31:59", "remaining_time": "1 day, 17:59:16"}
|
| 120 |
{"current_steps": 1200, "total_steps": 3886, "loss": 0.0164, "lr": 1.7467208475099777e-05, "epoch": 0.6176811221207051, "percentage": 30.88, "elapsed_time": "18:41:07", "remaining_time": "1 day, 17:49:27"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
{"current_steps": 1180, "total_steps": 3886, "loss": 0.0162, "lr": 1.7585504424141483e-05, "epoch": 0.6073864367520267, "percentage": 30.37, "elapsed_time": "18:22:49", "remaining_time": "1 day, 18:09:01"}
|
| 119 |
{"current_steps": 1190, "total_steps": 3886, "loss": 0.0167, "lr": 1.752666017275453e-05, "epoch": 0.612533779436366, "percentage": 30.62, "elapsed_time": "18:31:59", "remaining_time": "1 day, 17:59:16"}
|
| 120 |
{"current_steps": 1200, "total_steps": 3886, "loss": 0.0164, "lr": 1.7467208475099777e-05, "epoch": 0.6176811221207051, "percentage": 30.88, "elapsed_time": "18:41:07", "remaining_time": "1 day, 17:49:27"}
|
| 121 |
+
{"current_steps": 1210, "total_steps": 3886, "loss": 0.0161, "lr": 1.740715412928302e-05, "epoch": 0.6228284648050444, "percentage": 31.14, "elapsed_time": "18:51:54", "remaining_time": "1 day, 17:43:17"}
|
| 122 |
+
{"current_steps": 1220, "total_steps": 3886, "loss": 0.0158, "lr": 1.734650198204736e-05, "epoch": 0.6279758074893836, "percentage": 31.39, "elapsed_time": "19:01:01", "remaining_time": "1 day, 17:33:25"}
|
| 123 |
+
{"current_steps": 1230, "total_steps": 3886, "loss": 0.0156, "lr": 1.7285256928382024e-05, "epoch": 0.6331231501737228, "percentage": 31.65, "elapsed_time": "19:10:11", "remaining_time": "1 day, 17:23:40"}
|
| 124 |
+
{"current_steps": 1240, "total_steps": 3886, "loss": 0.0176, "lr": 1.7223423911127315e-05, "epoch": 0.638270492858062, "percentage": 31.91, "elapsed_time": "19:19:44", "remaining_time": "1 day, 17:14:44"}
|
| 125 |
+
{"current_steps": 1250, "total_steps": 3886, "loss": 0.0156, "lr": 1.7161007920575705e-05, "epoch": 0.6434178355424013, "percentage": 32.17, "elapsed_time": "19:28:44", "remaining_time": "1 day, 17:04:39"}
|
| 126 |
+
{"current_steps": 1260, "total_steps": 3886, "loss": 0.0154, "lr": 1.709801399406907e-05, "epoch": 0.6485651782267404, "percentage": 32.42, "elapsed_time": "19:37:50", "remaining_time": "1 day, 16:54:46"}
|
| 127 |
+
{"current_steps": 1270, "total_steps": 3886, "loss": 0.0154, "lr": 1.7034447215592168e-05, "epoch": 0.6537125209110797, "percentage": 32.68, "elapsed_time": "19:46:54", "remaining_time": "1 day, 16:44:50"}
|
| 128 |
+
{"current_steps": 1280, "total_steps": 3886, "loss": 0.0159, "lr": 1.6970312715362304e-05, "epoch": 0.6588598635954188, "percentage": 32.94, "elapsed_time": "19:56:08", "remaining_time": "1 day, 16:35:16"}
|
| 129 |
+
{"current_steps": 1290, "total_steps": 3886, "loss": 0.0164, "lr": 1.6905615669415326e-05, "epoch": 0.6640072062797581, "percentage": 33.2, "elapsed_time": "20:05:18", "remaining_time": "1 day, 16:25:33"}
|
| 130 |
+
{"current_steps": 1300, "total_steps": 3886, "loss": 0.0155, "lr": 1.684036129918786e-05, "epoch": 0.6691545489640973, "percentage": 33.45, "elapsed_time": "20:14:19", "remaining_time": "1 day, 16:15:33"}
|