Upload README.md with huggingface_hub
Browse files
    	
        README.md
    ADDED
    
    | @@ -0,0 +1,45 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            library_name: transformers
         | 
| 3 | 
            +
            license: other
         | 
| 4 | 
            +
            license_name: nvidia-open-model-license
         | 
| 5 | 
            +
            license_link: https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-open-model-license/
         | 
| 6 | 
            +
            pipeline_tag: text-generation
         | 
| 7 | 
            +
            language:
         | 
| 8 | 
            +
            - en
         | 
| 9 | 
            +
            tags:
         | 
| 10 | 
            +
            - nvidia
         | 
| 11 | 
            +
            - reasoning
         | 
| 12 | 
            +
            - math
         | 
| 13 | 
            +
            - code
         | 
| 14 | 
            +
            - reinforcement learning
         | 
| 15 | 
            +
            - pytorch
         | 
| 16 | 
            +
            - mlx
         | 
| 17 | 
            +
            - mlx-my-repo
         | 
| 18 | 
            +
            base_model: nvidia/AceReason-Nemotron-14B
         | 
| 19 | 
            +
            ---
         | 
| 20 | 
            +
             | 
| 21 | 
            +
            # mlx-community/AceReason-Nemotron-14B-8bit
         | 
| 22 | 
            +
             | 
| 23 | 
            +
            The Model [mlx-community/AceReason-Nemotron-14B-8bit](https://huggingface.co/mlx-community/AceReason-Nemotron-14B-8bit) was converted to MLX format from [nvidia/AceReason-Nemotron-14B](https://huggingface.co/nvidia/AceReason-Nemotron-14B) using mlx-lm version **0.24.1**.
         | 
| 24 | 
            +
             | 
| 25 | 
            +
            ## Use with mlx
         | 
| 26 | 
            +
             | 
| 27 | 
            +
            ```bash
         | 
| 28 | 
            +
            pip install mlx-lm
         | 
| 29 | 
            +
            ```
         | 
| 30 | 
            +
             | 
| 31 | 
            +
            ```python
         | 
| 32 | 
            +
            from mlx_lm import load, generate
         | 
| 33 | 
            +
             | 
| 34 | 
            +
            model, tokenizer = load("mlx-community/AceReason-Nemotron-14B-8bit")
         | 
| 35 | 
            +
             | 
| 36 | 
            +
            prompt="hello"
         | 
| 37 | 
            +
             | 
| 38 | 
            +
            if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
         | 
| 39 | 
            +
                messages = [{"role": "user", "content": prompt}]
         | 
| 40 | 
            +
                prompt = tokenizer.apply_chat_template(
         | 
| 41 | 
            +
                    messages, tokenize=False, add_generation_prompt=True
         | 
| 42 | 
            +
                )
         | 
| 43 | 
            +
             | 
| 44 | 
            +
            response = generate(model, tokenizer, prompt=prompt, verbose=True)
         | 
| 45 | 
            +
            ```
         | 

