Text Generation
Transformers
Safetensors
PyTorch
llama
facebook
meta
llama-3
text-generation-inference
Instructions to use rubenz-org/llama_3_2_1b_instruct_MLC with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rubenz-org/llama_3_2_1b_instruct_MLC with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rubenz-org/llama_3_2_1b_instruct_MLC")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("rubenz-org/llama_3_2_1b_instruct_MLC") model = AutoModelForCausalLM.from_pretrained("rubenz-org/llama_3_2_1b_instruct_MLC", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use rubenz-org/llama_3_2_1b_instruct_MLC with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rubenz-org/llama_3_2_1b_instruct_MLC" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rubenz-org/llama_3_2_1b_instruct_MLC", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/rubenz-org/llama_3_2_1b_instruct_MLC
- SGLang
How to use rubenz-org/llama_3_2_1b_instruct_MLC 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 "rubenz-org/llama_3_2_1b_instruct_MLC" \ --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": "rubenz-org/llama_3_2_1b_instruct_MLC", "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 "rubenz-org/llama_3_2_1b_instruct_MLC" \ --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": "rubenz-org/llama_3_2_1b_instruct_MLC", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use rubenz-org/llama_3_2_1b_instruct_MLC with Docker Model Runner:
docker model run hf.co/rubenz-org/llama_3_2_1b_instruct_MLC
Commit History
-
Upload params_shard_10.bin with huggingface_hub
Verified signaturea60a140 -
Upload params_shard_13.bin with huggingface_hub
Verified signaturefdb37b0 -
Upload params_shard_15.bin with huggingface_hub
Verified signaturec031b0a -
Upload params_shard_20.bin with huggingface_hub
Verified signature88c4f58 -
Upload params_shard_1.bin with huggingface_hub
Verified signature0d4bf42 -
Upload params_shard_12.bin with huggingface_hub
Verified signature3d2f739 -
Upload params_shard_17.bin with huggingface_hub
Verified signature04f96c2 -
Upload params_shard_5.bin with huggingface_hub
Verified signature8881799 -
Upload mlc-chat-config.json with huggingface_hub
Verified signature6fe0ee3 -
Upload params_shard_14.bin with huggingface_hub
Verified signaturee8d6933 -
Upload params_shard_21.bin with huggingface_hub
Verified signaturef56765e -
Upload params_shard_3.bin with huggingface_hub
Verified signature361f803 -
Upload tensor-cache.json with huggingface_hub
Verified signaturee18e0b4 -
Upload params_shard_7.bin with huggingface_hub
Verified signaturefd843b4 -
Upload params_shard_6.bin with huggingface_hub
Verified signature6b9005b -
Upload params_shard_19.bin with huggingface_hub
Verified signature7af117a -
Upload params_shard_16.bin with huggingface_hub
Verified signature176705b -
Upload params_shard_11.bin with huggingface_hub
Verified signature0a853ee -
Upload params_shard_0.bin with huggingface_hub
Verified signaturebc97ce4 -
Upload params_shard_18.bin with huggingface_hub
Verified signature26222b8 -
Upload params_shard_4.bin with huggingface_hub
Verified signature2eb636b -
Upload params_shard_2.bin with huggingface_hub
Verified signature4ca64f8 -
Upload params_shard_8.bin with huggingface_hub
Verified signature56d516c -
Upload tensor-cache-b16.json with huggingface_hub
Verified signature2a9acd7 -
Upload params_shard_9.bin with huggingface_hub
Verified signature4880f3d -
Upload ndarray-cache.json with huggingface_hub
Verified signaturec550a8b -
Upload Llama-3.2-1B-Instruct-32bit-webgpu.wasm with huggingface_hub
Verified signatureb93c3b0 -
Upload original/tokenizer.model with huggingface_hub
Verified signatureb583832 -
Upload original/consolidated.00.pth with huggingface_hub
Verified signature7940696 -
Upload original/params.json with huggingface_hub
Verified signaturef5d19a6 -
Upload model.safetensors.index.json with huggingface_hub
Verified signaturee514ef8 -
Upload README.md with huggingface_hub
Verified signature4b90087 -
Upload special_tokens_map.json with huggingface_hub
Verified signatureb2947cc -
Upload LICENSE.txt with huggingface_hub
Verified signature73ab29f -
Upload model.safetensors with huggingface_hub
Verified signature5810506 -
Upload USE_POLICY.md with huggingface_hub
Verified signature32bfdbb -
Upload config.json with huggingface_hub
Verified signature04baaf4 -
Upload generation_config.json with huggingface_hub
Verified signature2cef60f
-
Upload folder using huggingface_hub
Verified signature30196c8
-
Upload tokenizer.json with huggingface_hub
Verified signature318de60 -
Upload tokenizer_config.json with huggingface_hub
Verified signatureee055e4 -
Upload tensor-cache.json with huggingface_hub
Verified signature7589d3f -
Upload params_shard_9.bin with huggingface_hub
Verified signaturefa013fd -
Upload params_shard_8.bin with huggingface_hub
Verified signature2fd170e -
Upload params_shard_7.bin with huggingface_hub
Verified signature5db72a6 -
Upload params_shard_6.bin with huggingface_hub
Verified signature81ec1a9 -
Upload params_shard_5.bin with huggingface_hub
Verified signature26f1d0f -
Upload params_shard_4.bin with huggingface_hub
Verified signature0d0ef12 -
Upload params_shard_3.bin with huggingface_hub
Verified signaturec302975 -
Upload params_shard_2.bin with huggingface_hub
Verified signature05e3585