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 600
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:814fc09497bd3997938aa9b46c3b39f2f153c3ee2122859c1a3eea992c91b3e5
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -48,3 +48,13 @@
|
|
| 48 |
{"current_steps": 480, "total_steps": 3886, "loss": 0.0253, "lr": 1.9967331672480798e-05, "epoch": 0.24707244884828208, "percentage": 12.35, "elapsed_time": "7:29:16", "remaining_time": "2 days, 5:07:57"}
|
| 49 |
{"current_steps": 490, "total_steps": 3886, "loss": 0.0236, "lr": 1.995967388549843e-05, "epoch": 0.2522197915326213, "percentage": 12.61, "elapsed_time": "7:38:28", "remaining_time": "2 days, 4:57:29"}
|
| 50 |
{"current_steps": 500, "total_steps": 3886, "loss": 0.0247, "lr": 1.9951212293562547e-05, "epoch": 0.2573671342169605, "percentage": 12.87, "elapsed_time": "7:47:43", "remaining_time": "2 days, 4:47:22"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
{"current_steps": 480, "total_steps": 3886, "loss": 0.0253, "lr": 1.9967331672480798e-05, "epoch": 0.24707244884828208, "percentage": 12.35, "elapsed_time": "7:29:16", "remaining_time": "2 days, 5:07:57"}
|
| 49 |
{"current_steps": 490, "total_steps": 3886, "loss": 0.0236, "lr": 1.995967388549843e-05, "epoch": 0.2522197915326213, "percentage": 12.61, "elapsed_time": "7:38:28", "remaining_time": "2 days, 4:57:29"}
|
| 50 |
{"current_steps": 500, "total_steps": 3886, "loss": 0.0247, "lr": 1.9951212293562547e-05, "epoch": 0.2573671342169605, "percentage": 12.87, "elapsed_time": "7:47:43", "remaining_time": "2 days, 4:47:22"}
|
| 51 |
+
{"current_steps": 510, "total_steps": 3886, "loss": 0.0239, "lr": 1.994194757957397e-05, "epoch": 0.2625144769012997, "percentage": 13.12, "elapsed_time": "7:58:30", "remaining_time": "2 days, 4:47:35"}
|
| 52 |
+
{"current_steps": 520, "total_steps": 3886, "loss": 0.0237, "lr": 1.9931880491250263e-05, "epoch": 0.2676618195856389, "percentage": 13.38, "elapsed_time": "8:07:35", "remaining_time": "2 days, 4:36:15"}
|
| 53 |
+
{"current_steps": 530, "total_steps": 3886, "loss": 0.0238, "lr": 1.992101184106535e-05, "epoch": 0.27280916226997814, "percentage": 13.64, "elapsed_time": "8:16:53", "remaining_time": "2 days, 4:26:23"}
|
| 54 |
+
{"current_steps": 540, "total_steps": 3886, "loss": 0.0247, "lr": 1.990934250618399e-05, "epoch": 0.27795650495431734, "percentage": 13.9, "elapsed_time": "8:26:10", "remaining_time": "2 days, 4:16:21"}
|
| 55 |
+
{"current_steps": 550, "total_steps": 3886, "loss": 0.0226, "lr": 1.989687342839095e-05, "epoch": 0.28310384763865654, "percentage": 14.15, "elapsed_time": "8:35:16", "remaining_time": "2 days, 4:05:19"}
|
| 56 |
+
{"current_steps": 560, "total_steps": 3886, "loss": 0.0231, "lr": 1.9883605614015014e-05, "epoch": 0.28825119032299573, "percentage": 14.41, "elapsed_time": "8:44:21", "remaining_time": "2 days, 3:54:19"}
|
| 57 |
+
{"current_steps": 570, "total_steps": 3886, "loss": 0.0223, "lr": 1.986954013384776e-05, "epoch": 0.293398533007335, "percentage": 14.67, "elapsed_time": "8:53:31", "remaining_time": "2 days, 3:43:46"}
|
| 58 |
+
{"current_steps": 580, "total_steps": 3886, "loss": 0.0231, "lr": 1.9854678123057144e-05, "epoch": 0.2985458756916742, "percentage": 14.93, "elapsed_time": "9:02:51", "remaining_time": "2 days, 3:34:16"}
|
| 59 |
+
{"current_steps": 590, "total_steps": 3886, "loss": 0.0218, "lr": 1.9839020781095873e-05, "epoch": 0.3036932183760134, "percentage": 15.18, "elapsed_time": "9:11:59", "remaining_time": "2 days, 3:23:37"}
|
| 60 |
+
{"current_steps": 600, "total_steps": 3886, "loss": 0.0223, "lr": 1.9822569371604637e-05, "epoch": 0.30884056106035257, "percentage": 15.44, "elapsed_time": "9:21:04", "remaining_time": "2 days, 3:12:50"}
|