Text Generation
Transformers
Safetensors
qwen3
llama-factory
full
Generated from Trainer
conversational
text-generation-inference
Instructions to use DCAgent2/swesmith-bugsseq with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DCAgent2/swesmith-bugsseq with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DCAgent2/swesmith-bugsseq") 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("DCAgent2/swesmith-bugsseq") model = AutoModelForCausalLM.from_pretrained("DCAgent2/swesmith-bugsseq", 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 DCAgent2/swesmith-bugsseq with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DCAgent2/swesmith-bugsseq" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DCAgent2/swesmith-bugsseq", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/DCAgent2/swesmith-bugsseq
- SGLang
How to use DCAgent2/swesmith-bugsseq 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 "DCAgent2/swesmith-bugsseq" \ --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": "DCAgent2/swesmith-bugsseq", "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 "DCAgent2/swesmith-bugsseq" \ --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": "DCAgent2/swesmith-bugsseq", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use DCAgent2/swesmith-bugsseq with Docker Model Runner:
docker model run hf.co/DCAgent2/swesmith-bugsseq
Training in progress, step 3400
Browse filesFiles changed (5)
123version https://git-lfs.github.com/spec/v1oid sha256:9914bc5f82a37b2ef1f8e3799a65e97310deb2c6a9d9e8fd1105ae3f0888597asize 4902257696123version https://git-lfs.github.com/spec/v1oid sha256:fc993fdd01a09b520ec832fb24610d1ce0e2842b765077f2674334bc6bfe18c8size 4902257696
123version https://git-lfs.github.com/spec/v1oid sha256:347d1b171e8bc7cf699d894ee3aa8c941e719067038b8ca223f4405f8464dc30size 4915960368123version https://git-lfs.github.com/spec/v1oid sha256:b1a1fe155a80d2ef486cc1906a123f619c30f1896659ae85741c33b3d0b598cesize 4915960368
123version https://git-lfs.github.com/spec/v1oid sha256:8983e48e9146fcf6ab37d0e8396e4f49ae3e1ea7617bc0d5758a186d22e68f23size 4983068496123version https://git-lfs.github.com/spec/v1oid sha256:db48171ec06151fb4191ac2ecb6c537dbe0c9b4341e3d83f83a53af8304c17ebsize 4983068496
123version https://git-lfs.github.com/spec/v1oid sha256:f07d740e6927045595aa086a43985b549094f7f07e93821abd0d710d7d3ca457size 1580230264123version https://git-lfs.github.com/spec/v1oid sha256:7524fe06622c2ee77bab3c857718f6f3c14a72610b5db2f3cb64be410c7d7c2fsize 1580230264
667 unmodified lines668669670667 unmodified lines{"current_steps": 3330, "total_steps": 6188, "loss": 0.0882, "lr": 2.0840293624721234e-05, "epoch": 3.767402376910017, "percentage": 53.81, "elapsed_time": "2:02:49", "remaining_time": "1:45:24"}{"current_steps": 3335, "total_steps": 6188, "loss": 0.0833, "lr": 2.0783928018781644e-05, "epoch": 3.77306168647425, "percentage": 53.89, "elapsed_time": "2:04:25", "remaining_time": "1:46:26"}{"current_steps": 3340, "total_steps": 6188, "loss": 0.0882, "lr": 2.0727556176050676e-05, "epoch": 3.7787209960384835, "percentage": 53.98, "elapsed_time": "2:06:00", "remaining_time": "1:47:26"}667 unmodified lines668669670671672673674675676677678679680681682667 unmodified lines{"current_steps": 3330, "total_steps": 6188, "loss": 0.0882, "lr": 2.0840293624721234e-05, "epoch": 3.767402376910017, "percentage": 53.81, "elapsed_time": "2:02:49", "remaining_time": "1:45:24"}{"current_steps": 3335, "total_steps": 6188, "loss": 0.0833, "lr": 2.0783928018781644e-05, "epoch": 3.77306168647425, "percentage": 53.89, "elapsed_time": "2:04:25", "remaining_time": "1:46:26"}{"current_steps": 3340, "total_steps": 6188, "loss": 0.0882, "lr": 2.0727556176050676e-05, "epoch": 3.7787209960384835, "percentage": 53.98, "elapsed_time": "2:06:00", "remaining_time": "1:47:26"}{"current_steps": 3345, "total_steps": 6188, "loss": 0.0945, "lr": 2.0671178545012643e-05, "epoch": 3.7843803056027165, "percentage": 54.06, "elapsed_time": "2:07:36", "remaining_time": "1:48:27"}{"current_steps": 3350, "total_steps": 6188, "loss": 0.101, "lr": 2.0614795574197907e-05, "epoch": 3.7900396151669495, "percentage": 54.14, "elapsed_time": "2:09:25", "remaining_time": "1:49:38"}{"current_steps": 3355, "total_steps": 6188, "loss": 0.0925, "lr": 2.0558407712179334e-05, "epoch": 3.795698924731183, "percentage": 54.22, "elapsed_time": "2:11:01", "remaining_time": "1:50:38"}{"current_steps": 3360, "total_steps": 6188, "loss": 0.1026, "lr": 2.050201540756868e-05, "epoch": 3.801358234295416, "percentage": 54.3, "elapsed_time": "2:12:30", "remaining_time": "1:51:31"}{"current_steps": 3365, "total_steps": 6188, "loss": 0.1105, "lr": 2.0445619109013054e-05, "epoch": 3.807017543859649, "percentage": 54.38, "elapsed_time": "2:14:33", "remaining_time": "1:52:52"}{"current_steps": 3370, "total_steps": 6188, "loss": 0.0871, "lr": 2.038921926519134e-05, "epoch": 3.8126768534238824, "percentage": 54.46, "elapsed_time": "2:16:08", "remaining_time": "1:53:50"}{"current_steps": 3375, "total_steps": 6188, "loss": 0.0755, "lr": 2.033281632481063e-05, "epoch": 3.8183361629881154, "percentage": 54.54, "elapsed_time": "2:17:41", "remaining_time": "1:54:45"}{"current_steps": 3380, "total_steps": 6188, "loss": 0.0889, "lr": 2.027641073660265e-05, "epoch": 3.8239954725523484, "percentage": 54.62, "elapsed_time": "2:19:12", "remaining_time": "1:55:39"}{"current_steps": 3385, "total_steps": 6188, "loss": 0.1151, "lr": 2.0220002949320187e-05, "epoch": 3.829654782116582, "percentage": 54.7, "elapsed_time": "2:21:16", "remaining_time": "1:56:59"}{"current_steps": 3390, "total_steps": 6188, "loss": 0.0715, "lr": 2.0163593411733533e-05, "epoch": 3.835314091680815, "percentage": 54.78, "elapsed_time": "2:22:46", "remaining_time": "1:57:50"}{"current_steps": 3395, "total_steps": 6188, "loss": 0.0893, "lr": 2.0107182572626897e-05, "epoch": 3.8409734012450483, "percentage": 54.86, "elapsed_time": "2:24:48", "remaining_time": "1:59:08"}{"current_steps": 3400, "total_steps": 6188, "loss": 0.0863, "lr": 2.0050770880794843e-05, "epoch": 3.8466327108092813, "percentage": 54.95, "elapsed_time": "2:26:30", "remaining_time": "2:00:07"}
model-00001-of-00004.safetensors+1-1
model-00002-of-00004.safetensors+1-1
model-00003-of-00004.safetensors+1-1
model-00004-of-00004.safetensors+1-1
trainer_log.jsonl+12