Downloads · 30 days
3
5% of all-time downloads
rohanprichard/Llama-3.2-3B-Instruct-MLC
Llama-3.2-3B-Instruct-MLC is a machine learning model from rohanprichard. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for mlc-llm.
This is the Llama-3.2-3B-Instruct model in MLC format q4f161. The model can be used for projects MLC-LLM and WebLLM.
Downloads · 30 days
3
5% of all-time downloads
All-time downloads
58
Public
Repo size
1.8 GB
Likes
0
Public
Click a slice to open those files.
.bin1.8 GB · 99%
From the Hugging Face model README
This is the Llama-3.2-3B-Instruct model in MLC format q4f16_1.
The model can be used for projects MLC-LLM and WebLLM.
Here are some examples of using this model in MLC LLM. Before running the examples, please install MLC LLM by following the installation documentation.
In command line, run
mlc_llm chat HF://rohanprichard/Llama-3.2-3B-Instruct-MLC
In command line, run
mlc_llm serve HF://rohanprichard/Llama-3.2-3B-Instruct-MLC
from mlc_llm import MLCEngine
# Create engine
model = "HF://rohanprichard/Llama-3.2-3B-Instruct-MLC"
engine = MLCEngine(model)
# Run chat completion in OpenAI API.
for response in engine.chat.completions.create(
messages = [
{
"role": "user",
"content": [
{
"type": "text",
"text": "How many r's are in the word strawberry?"
},
],
},
],
model=model,
stream=True,
):
for choice in response.choices:
print(choice.delta.content, end="", flush=True)
print("\n")
engine.terminate()
For more information on MLC LLM project, please visit the documentation and GitHub repo. Model card based on the template from the MLC team.