Run this model with HF Jobs
Run mlc-ai/CodeLlama-13b-Python-hf-q4f16_1-MLC 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 to fine-tune https://huggingface.co/mlc-ai/CodeLlama-13b-Python-hf-q4f16_1-MLC. 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/mlc-ai/CodeLlama-13b-Python-hf-q4f16_1-MLC 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.
Instructions to use mlc-ai/CodeLlama-13b-Python-hf-q4f16_1-MLC with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLC-LLM
How to use mlc-ai/CodeLlama-13b-Python-hf-q4f16_1-MLC with MLC-LLM:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657---library_name: mlc-llmbase_model: codellama/CodeLlama-13b-Python-hftags:- mlc-llm- web-llm---
# CodeLlama-13b-Python-hf-q4f16_1-MLC
This is the [CodeLlama-13b-Python-hf](https://huggingface.co/codellama/CodeLlama-13b-Python-hf) model in MLC format `q4f16_1`.The model can be used for projects [MLC-LLM](https://github.com/mlc-ai/mlc-llm) and [WebLLM](https://github.com/mlc-ai/web-llm).
## Example Usage
Here are some examples of using this model in MLC LLM.Before running the examples, please install MLC LLM by following the [installation documentation](https://llm.mlc.ai/docs/install/mlc_llm.html#install-mlc-packages).
### Chat
In command line, run```bashmlc_llm chat HF://mlc-ai/CodeLlama-13b-Python-hf-q4f16_1-MLC```
### REST Server
In command line, run```bashmlc_llm serve HF://mlc-ai/CodeLlama-13b-Python-hf-q4f16_1-MLC```
### Python API
```pythonfrom mlc_llm import MLCEngine
# Create enginemodel = "HF://mlc-ai/CodeLlama-13b-Python-hf-q4f16_1-MLC"engine = MLCEngine(model)
# Run chat completion in OpenAI API.for response in engine.chat.completions.create( messages=[{"role": "user", "content": "What is the meaning of life?"}], model=model, stream=True,): for choice in response.choices: print(choice.delta.content, end="", flush=True)print("\n")
engine.terminate()```
## Documentation
For more information on MLC LLM project, please visit our [documentation](https://llm.mlc.ai/docs/) and [GitHub repo](http://github.com/mlc-ai/mlc-llm).README.mdAdded+57