Text Generation
Transformers
PyTorch
TensorBoard
Safetensors
llama
Generated from Trainer
unsloth
trl
sft
conversational
text-generation-inference
Run this model with HF Jobs
Run FYPFAST/Llama-3.2-3B-Instruct-PEP8-Vulnerability-Python on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/FYPFAST/Llama-3.2-3B-Instruct-PEP8-Vulnerability-Python. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/FYPFAST/Llama-3.2-3B-Instruct-PEP8-Vulnerability-Python on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/FYPFAST/Llama-3.2-3B-Instruct-PEP8-Vulnerability-Python. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/FYPFAST/Llama-3.2-3B-Instruct-PEP8-Vulnerability-Python. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use FYPFAST/Llama-3.2-3B-Instruct-PEP8-Vulnerability-Python with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FYPFAST/Llama-3.2-3B-Instruct-PEP8-Vulnerability-Python with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="FYPFAST/Llama-3.2-3B-Instruct-PEP8-Vulnerability-Python") 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("FYPFAST/Llama-3.2-3B-Instruct-PEP8-Vulnerability-Python") model = AutoModelForCausalLM.from_pretrained("FYPFAST/Llama-3.2-3B-Instruct-PEP8-Vulnerability-Python", 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 FYPFAST/Llama-3.2-3B-Instruct-PEP8-Vulnerability-Python with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FYPFAST/Llama-3.2-3B-Instruct-PEP8-Vulnerability-Python" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FYPFAST/Llama-3.2-3B-Instruct-PEP8-Vulnerability-Python", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/FYPFAST/Llama-3.2-3B-Instruct-PEP8-Vulnerability-Python
- SGLang
How to use FYPFAST/Llama-3.2-3B-Instruct-PEP8-Vulnerability-Python 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 "FYPFAST/Llama-3.2-3B-Instruct-PEP8-Vulnerability-Python" \ --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": "FYPFAST/Llama-3.2-3B-Instruct-PEP8-Vulnerability-Python", "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 "FYPFAST/Llama-3.2-3B-Instruct-PEP8-Vulnerability-Python" \ --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": "FYPFAST/Llama-3.2-3B-Instruct-PEP8-Vulnerability-Python", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use FYPFAST/Llama-3.2-3B-Instruct-PEP8-Vulnerability-Python with Docker Model Runner:
docker model run hf.co/FYPFAST/Llama-3.2-3B-Instruct-PEP8-Vulnerability-Python
Training in progress, step 60
Browse filesFiles changed (4)
23 unmodified lines24252627282930313233343523 unmodified lines"revision": null,"target_modules": ["up_proj","q_proj","k_proj","down_proj","v_proj","gate_proj","o_proj"],"task_type": "CAUSAL_LM","use_dora": false,23 unmodified lines24252627282930313233343523 unmodified lines"revision": null,"target_modules": ["up_proj","o_proj","q_proj","gate_proj","v_proj","k_proj","down_proj"],"task_type": "CAUSAL_LM","use_dora": false,
123version https://git-lfs.github.com/spec/v1oid sha256:fe31e0e9ffe3ac7e899db3bcc12788ccb79e0a04eb4cc7830208ee6fde8d36d8size 1965084424123version https://git-lfs.github.com/spec/v1oid sha256:7525396a3878467a817fc6959047e09a1a4941037dd7ee04d9ba04652d08844csize 1965084424
123version https://git-lfs.github.com/spec/v1oid sha256:999b4c51266a9e96b2b409689e27ce15ace73333e4a4c0ed91dee2ba537e5076size 18883123version https://git-lfs.github.com/spec/v1oid sha256:da5f0475abe85e6d85acd3545573f94f5668172c1393a355efdb3d983e92a6desize 5624123version https://git-lfs.github.com/spec/v1oid sha256:be51fa8286a4fbbb58c9252480888681615d4193c0f73899356f0306e8c54aacsize 5624
adapter_config.json+4-4
adapter_model.safetensors+1-1
runs/Dec02_19-23-05_2d55d71a4718/events.out.tfevents.1733167389.2d55d71a4718.276.0Added+3
training_args.bin+1-1