Upload README.md with huggingface_hub
Browse files
    	
        README.md
    ADDED
    
    | @@ -0,0 +1,53 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            license: mit
         | 
| 3 | 
            +
            license_link: https://huggingface.co/huihui-ai/phi-4-abliterated/resolve/main/LICENSE
         | 
| 4 | 
            +
            language:
         | 
| 5 | 
            +
            - en
         | 
| 6 | 
            +
            base_model: huihui-ai/phi-4-abliterated
         | 
| 7 | 
            +
            pipeline_tag: text-generation
         | 
| 8 | 
            +
            tags:
         | 
| 9 | 
            +
            - phi
         | 
| 10 | 
            +
            - nlp
         | 
| 11 | 
            +
            - math
         | 
| 12 | 
            +
            - code
         | 
| 13 | 
            +
            - chat
         | 
| 14 | 
            +
            - conversational
         | 
| 15 | 
            +
            - abliterated
         | 
| 16 | 
            +
            - uncensored
         | 
| 17 | 
            +
            - mlx
         | 
| 18 | 
            +
            - mlx-my-repo
         | 
| 19 | 
            +
            inference:
         | 
| 20 | 
            +
              parameters:
         | 
| 21 | 
            +
                temperature: 0
         | 
| 22 | 
            +
            widget:
         | 
| 23 | 
            +
            - messages:
         | 
| 24 | 
            +
              - role: user
         | 
| 25 | 
            +
                content: How should I explain the Internet?
         | 
| 26 | 
            +
            library_name: transformers
         | 
| 27 | 
            +
            ---
         | 
| 28 | 
            +
             | 
| 29 | 
            +
            # Felladrin/phi-4-abliterated-Q6-mlx
         | 
| 30 | 
            +
             | 
| 31 | 
            +
            The Model [Felladrin/phi-4-abliterated-Q6-mlx](https://huggingface.co/Felladrin/phi-4-abliterated-Q6-mlx) was converted to MLX format from [huihui-ai/phi-4-abliterated](https://huggingface.co/huihui-ai/phi-4-abliterated) using mlx-lm version **0.20.5**.
         | 
| 32 | 
            +
             | 
| 33 | 
            +
            ## Use with mlx
         | 
| 34 | 
            +
             | 
| 35 | 
            +
            ```bash
         | 
| 36 | 
            +
            pip install mlx-lm
         | 
| 37 | 
            +
            ```
         | 
| 38 | 
            +
             | 
| 39 | 
            +
            ```python
         | 
| 40 | 
            +
            from mlx_lm import load, generate
         | 
| 41 | 
            +
             | 
| 42 | 
            +
            model, tokenizer = load("Felladrin/phi-4-abliterated-Q6-mlx")
         | 
| 43 | 
            +
             | 
| 44 | 
            +
            prompt="hello"
         | 
| 45 | 
            +
             | 
| 46 | 
            +
            if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
         | 
| 47 | 
            +
                messages = [{"role": "user", "content": prompt}]
         | 
| 48 | 
            +
                prompt = tokenizer.apply_chat_template(
         | 
| 49 | 
            +
                    messages, tokenize=False, add_generation_prompt=True
         | 
| 50 | 
            +
                )
         | 
| 51 | 
            +
             | 
| 52 | 
            +
            response = generate(model, tokenizer, prompt=prompt, verbose=True)
         | 
| 53 | 
            +
            ```
         | 

