How to use from
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 "jaydeepb/llama-3.2-1b-code-run2" \
    --host 0.0.0.0 \
    --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "jaydeepb/llama-3.2-1b-code-run2",
		"prompt": "Once upon a time,",
		"max_tokens": 512,
		"temperature": 0.5
	}'
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 "jaydeepb/llama-3.2-1b-code-run2" \
        --host 0.0.0.0 \
        --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "jaydeepb/llama-3.2-1b-code-run2",
		"prompt": "Once upon a time,",
		"max_tokens": 512,
		"temperature": 0.5
	}'
Quick Links

llama-3.2-1b-code-run2

Llama-3.2-1B fine-tuned for one epoch on a 1M-sequence (128-token) sample of The Stack.

This is the Run 2 model from Predicting Memorization Before Fine-Tuning Language Models. It is fine-tuned on a separate 1M-sequence sample from the Run 1 model. We use it to test whether our classifier, trained on Run 1, predicts which sequences this model memorizes.

License

Built with Llama. This model is a fine-tuned derivative of meta-llama/Llama-3.2-1B and is distributed under the Llama 3.2 Community License. Use of this model must comply with the Llama 3.2 Acceptable Use Policy.

Llama 3.2 is licensed under the Llama 3.2 Community License, Copyright © Meta Platforms, Inc. All Rights Reserved.

Downloads last month
295
Safetensors
Model size
1B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for jaydeepb/llama-3.2-1b-code-run2

Finetuned
(996)
this model

Dataset used to train jaydeepb/llama-3.2-1b-code-run2

Collection including jaydeepb/llama-3.2-1b-code-run2