Run this model with HF Jobs
Run nafisabdkhan/DeepSeek-Coder-V2-Instruct-mlx-3Bit 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/nafisabdkhan/DeepSeek-Coder-V2-Instruct-mlx-3Bit. 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/nafisabdkhan/DeepSeek-Coder-V2-Instruct-mlx-3Bit 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 nafisabdkhan/DeepSeek-Coder-V2-Instruct-mlx-3Bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use nafisabdkhan/DeepSeek-Coder-V2-Instruct-mlx-3Bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download nafisabdkhan/DeepSeek-Coder-V2-Instruct-mlx-3Bit --local-dir DeepSeek-Coder-V2-Instruct-mlx-3Bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Upload tokenization_deepseek_fast.py with huggingface_hub
Browse files1234567891011121314151617181920212223242526272829303132333435363738from typing import List, Optional, Union
from transformers.models.llama import LlamaTokenizerFast
class DeepseekTokenizerFast(LlamaTokenizerFast):
def convert_ids_to_tokens( self, ids: Union[int, List[int]], skip_special_tokens: bool = False ) -> Union[str, List[str]]: """ Converts a single index or a sequence of indices in a token or a sequence of tokens, using the vocabulary and added tokens.
Args: ids (`int` or `List[int]`): The token id (or token ids) to convert to tokens. skip_special_tokens (`bool`, *optional*, defaults to `False`): Whether or not to remove special tokens in the decoding.
Returns: `str` or `List[str]`: The decoded token(s). """ if isinstance(ids, int): return self._convert_id_to_token(ids) tokens = [] for index in ids: index = int(index) if skip_special_tokens and index in self.all_special_ids: continue token = self._tokenizer.id_to_token(index) tokens.append(token if token is not None else "") return tokens def _convert_id_to_token(self, index: int) -> Optional[str]: token = self._tokenizer.id_to_token(int(index)) return token if token is not None else ""tokenization_deepseek_fast.pyAdded+38