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 3600
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:dd031d99af01f33d62b04ad589f178c896f1e281352f148e72a492dd01a84f38
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -68,3 +68,13 @@
|
|
| 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"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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"}
|
| 71 |
+
{"current_steps": 3510, "total_steps": 3886, "loss": 0.0095, "lr": 5.680751779327742e-07, "epoch": 1.8065885986359542, "percentage": 90.32, "elapsed_time": "11:05:15", "remaining_time": "1:11:15"}
|
| 72 |
+
{"current_steps": 3520, "total_steps": 3886, "loss": 0.01, "lr": 5.386081979016256e-07, "epoch": 1.8117359413202934, "percentage": 90.58, "elapsed_time": "11:14:29", "remaining_time": "1:10:07"}
|
| 73 |
+
{"current_steps": 3530, "total_steps": 3886, "loss": 0.0092, "lr": 5.099048084945401e-07, "epoch": 1.8168832840046325, "percentage": 90.84, "elapsed_time": "11:23:35", "remaining_time": "1:08:56"}
|
| 74 |
+
{"current_steps": 3540, "total_steps": 3886, "loss": 0.01, "lr": 4.819673262458591e-07, "epoch": 1.8220306266889719, "percentage": 91.1, "elapsed_time": "11:32:44", "remaining_time": "1:07:42"}
|
| 75 |
+
{"current_steps": 3550, "total_steps": 3886, "loss": 0.0101, "lr": 4.547980058766566e-07, "epoch": 1.827177969373311, "percentage": 91.35, "elapsed_time": "11:41:53", "remaining_time": "1:06:25"}
|
| 76 |
+
{"current_steps": 3560, "total_steps": 3886, "loss": 0.0098, "lr": 4.283990401127769e-07, "epoch": 1.8323253120576504, "percentage": 91.61, "elapsed_time": "11:50:55", "remaining_time": "1:05:06"}
|
| 77 |
+
{"current_steps": 3570, "total_steps": 3886, "loss": 0.0098, "lr": 4.027725595078591e-07, "epoch": 1.8374726547419895, "percentage": 91.87, "elapsed_time": "12:00:11", "remaining_time": "1:03:44"}
|
| 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"}
|