Text Generation
Transformers
PyTorch
TensorBoard
Safetensors
llama
Generated from Trainer
unsloth
trl
sft
conversational
text-generation-inference
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 files- adapter_config.json +4 -4
- adapter_model.safetensors +1 -1
- runs/Nov17_17-13-12_b469086a229b/events.out.tfevents.1731863600.b469086a229b.252.2 +3 -0
- runs/Nov17_17-17-42_b469086a229b/events.out.tfevents.1731863869.b469086a229b.252.3 +3 -0
- runs/Nov17_17-21-53_b469086a229b/events.out.tfevents.1731864125.b469086a229b.23535.0 +3 -0
- runs/Nov17_17-28-21_b469086a229b/events.out.tfevents.1731864510.b469086a229b.25686.0 +3 -0
- training_args.bin +1 -1
adapter_config.json
CHANGED
|
@@ -23,13 +23,13 @@
|
|
| 23 |
"rank_pattern": {},
|
| 24 |
"revision": null,
|
| 25 |
"target_modules": [
|
|
|
|
| 26 |
"up_proj",
|
|
|
|
|
|
|
| 27 |
"k_proj",
|
| 28 |
"o_proj",
|
| 29 |
-
"
|
| 30 |
-
"q_proj",
|
| 31 |
-
"v_proj",
|
| 32 |
-
"gate_proj"
|
| 33 |
],
|
| 34 |
"task_type": "CAUSAL_LM",
|
| 35 |
"use_dora": false,
|
|
|
|
| 23 |
"rank_pattern": {},
|
| 24 |
"revision": null,
|
| 25 |
"target_modules": [
|
| 26 |
+
"gate_proj",
|
| 27 |
"up_proj",
|
| 28 |
+
"v_proj",
|
| 29 |
+
"down_proj",
|
| 30 |
"k_proj",
|
| 31 |
"o_proj",
|
| 32 |
+
"q_proj"
|
|
|
|
|
|
|
|
|
|
| 33 |
],
|
| 34 |
"task_type": "CAUSAL_LM",
|
| 35 |
"use_dora": false,
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1965084424
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:734ffd9a946d8d99510f8dda940717f94b74757d2224a3a448d163cb7f398438
|
| 3 |
size 1965084424
|
runs/Nov17_17-13-12_b469086a229b/events.out.tfevents.1731863600.b469086a229b.252.2
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5b9e0820eb419efb97c0c9841c9fb8662f36bb3ae4960ed104ec02732f142a87
|
| 3 |
+
size 6529
|
runs/Nov17_17-17-42_b469086a229b/events.out.tfevents.1731863869.b469086a229b.252.3
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ba52fa9589c656542ff76e9e04eba7ec687b5e4a8028dd02b4cd67f3cc06d2fc
|
| 3 |
+
size 4184
|
runs/Nov17_17-21-53_b469086a229b/events.out.tfevents.1731864125.b469086a229b.23535.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:511eefad9e54c2ab1f41d66364b29d26183319f5f659ac77a3bfe7bcc26bf899
|
| 3 |
+
size 6736
|
runs/Nov17_17-28-21_b469086a229b/events.out.tfevents.1731864510.b469086a229b.25686.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b98b5e4a7bf2bae5a763ae90ffb53351585d2c638c693b1f634c98197f566dda
|
| 3 |
+
size 18883
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5624
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:12e0b3ad4ee6b19826babdb0ff2b6d8427cd5a9f62ee08e6f4e7ccffe346c472
|
| 3 |
size 5624
|