Text Generation
Transformers
Safetensors
llama
causal-lm
conversational
code
fill-in-the-middle
instruct
research
experimental
text-generation-inference
Instructions to use mossez-systems/Mossez-100M-Coder-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mossez-systems/Mossez-100M-Coder-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mossez-systems/Mossez-100M-Coder-Instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("mossez-systems/Mossez-100M-Coder-Instruct") model = AutoModelForCausalLM.from_pretrained("mossez-systems/Mossez-100M-Coder-Instruct", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use mossez-systems/Mossez-100M-Coder-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mossez-systems/Mossez-100M-Coder-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mossez-systems/Mossez-100M-Coder-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/mossez-systems/Mossez-100M-Coder-Instruct
- SGLang
How to use mossez-systems/Mossez-100M-Coder-Instruct with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "mossez-systems/Mossez-100M-Coder-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mossez-systems/Mossez-100M-Coder-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "mossez-systems/Mossez-100M-Coder-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mossez-systems/Mossez-100M-Coder-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use mossez-systems/Mossez-100M-Coder-Instruct with Docker Model Runner:
docker model run hf.co/mossez-systems/Mossez-100M-Coder-Instruct
| b5eb03b52ce8941d22739e41bae8ec4d1ab2a529d8abecb42c6f68430616a161 chat_template.jinja | |
| aae190b1daeab09fec8ab276b2a97bb60ef56773c44db361ad53fd4c594b7017 config.json | |
| def1e269f57ae94c4bc348b85bef347f176bfc4d295de12ec9ee155739de2c61 DATASET_ATTRIBUTION.md | |
| b0ae233b7e29a39cef6c6cc055ddbad35e5b38fa92fb3577e0ece623d2ae8569 EVALUATION.md | |
| 0931ff2f000839227285e26dba99974b2383f6fdd1acffd9cfacf971b22df213 generation_config.json | |
| 8173d5c29b4f956d532781d2b86e4e30f83e6b7878dce18c919451d6ba707c90 LICENSE | |
| 0aade7d070122633abccd70cc5500e5bc36c7f69fafeadd9f5ee0b5a3e0766bf model.safetensors | |
| 99669f6f98c26b057f81967e442d1e2ae7f0e3f6fa1999c8a3d2f043a735a25d NOTICE.md | |
| b978cd04f3725a48c8b9f934f46159ae69e8c82728e9129236da0131c5c55664 README.md | |
| 813c2723c694d037427269cca895d01641f930d6a8f269ce7bf8e1e16e24dabe special_tokens_map.json | |
| e9551d84b9947f741763bf815a2d5f6bfcc47a3b67c73fcbf386223e8ed969be tokenizer.json | |
| 32c07b84f72b62dad43bc3956c541bfbc7b6ac1039930a7e1b8fd2a61fbd2ae9 tokenizer_config.json | |
| 90bd11e7d3ec83e90acb4b5bad9c0fdc3f92a160b5970a2b93979649c141ef0f TRAINING_REPORT.md | |