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
Commit History
-
Upload fine-tuned riscv-O2 model
Verified signaturefb67044 -
Training in progress, step 3800
Verified signaturebc0faa7 -
Training in progress, step 3700
Verified signature27e2034 -
Training in progress, step 3600
Verified signature3d0082a -
Training in progress, step 3500
Verified signatured21506b -
Training in progress, step 3400
Verified signatureede24d5 -
Training in progress, step 3300
Verified signaturee2c46b9
-
Training in progress, step 3200
Verified signaturea59e3fd -
Training in progress, step 3100
Verified signature45402d2 -
Training in progress, step 3000
Verified signature8ec603a -
Training in progress, step 2900
Verified signaturef0156b9 -
Training in progress, step 2800
Verified signatureb69bbe4 -
Training in progress, step 2700
Verified signature7d18fa4 -
Training in progress, step 2600
Verified signatured0edf9b -
Training in progress, step 2500
Verified signature74e74e9 -
Training in progress, step 2400
Verified signature870af9c -
Training in progress, step 2300
Verified signaturefd47eff -
Training in progress, step 2200
Verified signatureb050b2f -
Training in progress, step 2100
Verified signature6d78cd4 -
Training in progress, step 2000
Verified signature430c208
-
Training in progress, step 1900
Verified signature974556c -
Training in progress, step 1800
Verified signaturec1ca1e6 -
Training in progress, step 1700
Verified signatureac50aa6 -
Training in progress, step 1600
Verified signature9c7b63e -
Training in progress, step 1500
Verified signature22bc4a5 -
Training in progress, step 1400
Verified signature985d1cb -
Training in progress, step 1300
Verified signaturee0195be -
Training in progress, step 1200
Verified signaturef630c9e -
Training in progress, step 1100
Verified signature71c9bd1 -
Training in progress, step 1000
Verified signature4e8f17f -
Training in progress, step 900
Verified signatureacfcf4b -
Training in progress, step 800
Verified signature952a25d -
Training in progress, step 700
Verified signature587e72e -
Training in progress, step 600
Verified signature6e6b9b9 -
Training in progress, step 500
Verified signature6f9dd6a
-
Training in progress, step 400
Verified signature97b3ec4 -
Training in progress, step 300
Verified signatured17f4d5 -
Training in progress, step 200
Verified signaturecea6abd -
Training in progress, step 100
Verified signature166764d -
initial commit
Verified signature2960eba