Create README.md
Browse files
    	
        README.md
    ADDED
    
    | @@ -0,0 +1,24 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            language:
         | 
| 3 | 
            +
            - code
         | 
| 4 | 
            +
            license: llama2
         | 
| 5 | 
            +
            tags:
         | 
| 6 | 
            +
            - llama-2
         | 
| 7 | 
            +
            - mlx
         | 
| 8 | 
            +
            pipeline_tag: text-generation
         | 
| 9 | 
            +
            ---
         | 
| 10 | 
            +
            # mlx-community/CodeLlama-70b-Instruct-4bit
         | 
| 11 | 
            +
            This model was converted to MLX format from [`codellama/CodeLlama-70b-Instruct-hf`]().
         | 
| 12 | 
            +
            Refer to the [original model card](https://huggingface.co/codellama/CodeLlama-70b-Instruct-hf) for more details on the model.
         | 
| 13 | 
            +
            ## Use with mlx
         | 
| 14 | 
            +
             | 
| 15 | 
            +
            ```bash
         | 
| 16 | 
            +
            pip install mlx-lm
         | 
| 17 | 
            +
            ```
         | 
| 18 | 
            +
             | 
| 19 | 
            +
            ```python
         | 
| 20 | 
            +
            from mlx_lm import load, generate
         | 
| 21 | 
            +
             | 
| 22 | 
            +
            model, tokenizer = load("mlx-community/CodeLlama-70b-Instruct-4bit")
         | 
| 23 | 
            +
            response = generate(model, tokenizer, prompt="hello", verbose=True)
         | 
| 24 | 
            +
            ```
         | 

