Text Generation
Transformers
Safetensors
English
gpt_bigcode
Eval Results (legacy)
text-generation-inference
Instructions to use xvadov01/microcoderfim-1B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use xvadov01/microcoderfim-1B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="xvadov01/microcoderfim-1B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("xvadov01/microcoderfim-1B") model = AutoModelForCausalLM.from_pretrained("xvadov01/microcoderfim-1B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use xvadov01/microcoderfim-1B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "xvadov01/microcoderfim-1B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "xvadov01/microcoderfim-1B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/xvadov01/microcoderfim-1B
- SGLang
How to use xvadov01/microcoderfim-1B 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 "xvadov01/microcoderfim-1B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "xvadov01/microcoderfim-1B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "xvadov01/microcoderfim-1B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "xvadov01/microcoderfim-1B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use xvadov01/microcoderfim-1B with Docker Model Runner:
docker model run hf.co/xvadov01/microcoderfim-1B
Add base info to readme
Browse files
README.md
CHANGED
|
@@ -1,11 +1,20 @@
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
---
|
| 5 |
|
| 6 |
# Model Card for Model ID
|
| 7 |
|
| 8 |
-
|
| 9 |
|
| 10 |
|
| 11 |
|
|
@@ -18,12 +27,11 @@ tags: []
|
|
| 18 |
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
| 19 |
|
| 20 |
- **Developed by:** [More Information Needed]
|
| 21 |
-
- **Funded by [optional]:** [More Information Needed]
|
| 22 |
- **Shared by [optional]:** [More Information Needed]
|
| 23 |
-
- **Model type:**
|
| 24 |
-
- **Language(s) (NLP):**
|
| 25 |
-
- **License:**
|
| 26 |
-
- **Finetuned from model [optional]:** [
|
| 27 |
|
| 28 |
### Model Sources [optional]
|
| 29 |
|
|
@@ -144,11 +152,9 @@ Use the code below to get started with the model.
|
|
| 144 |
|
| 145 |
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 146 |
|
| 147 |
-
- **Hardware Type:**
|
| 148 |
-
- **Hours used:**
|
| 149 |
-
- **
|
| 150 |
-
- **Compute Region:** [More Information Needed]
|
| 151 |
-
- **Carbon Emitted:** [More Information Needed]
|
| 152 |
|
| 153 |
## Technical Specifications [optional]
|
| 154 |
|
|
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
+
license: mit
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
metrics:
|
| 7 |
+
- bleu
|
| 8 |
+
- code_eval
|
| 9 |
+
- rouge
|
| 10 |
+
- chrf
|
| 11 |
+
model_name: MicroCoderFIM
|
| 12 |
+
base_model: bigcode/starcoderbase-1b
|
| 13 |
---
|
| 14 |
|
| 15 |
# Model Card for Model ID
|
| 16 |
|
| 17 |
+
This is a finetuned version of StarCoderBase 1B using the [Fill-in-the-Middle objective](https://arxiv.org/abs/2207.14255) on [dataset](https://huggingface.co/datasets/xvadov01/cpp_emb_nl2pl) focused on embedded systems programming.
|
| 18 |
|
| 19 |
|
| 20 |
|
|
|
|
| 27 |
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
| 28 |
|
| 29 |
- **Developed by:** [More Information Needed]
|
|
|
|
| 30 |
- **Shared by [optional]:** [More Information Needed]
|
| 31 |
+
- **Model type:** Transformer decoder architecture with Multi-Query attention
|
| 32 |
+
- **Language(s) (NLP):** English
|
| 33 |
+
- **License:** MIT
|
| 34 |
+
- **Finetuned from model [optional]:** [StarCoderBase 1B](https://huggingface.co/bigcode/starcoderbase-1b)
|
| 35 |
|
| 36 |
### Model Sources [optional]
|
| 37 |
|
|
|
|
| 152 |
|
| 153 |
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 154 |
|
| 155 |
+
- **Hardware Type:** NVIDIA GeForce RTX 3090
|
| 156 |
+
- **Hours used:** 5h 25m
|
| 157 |
+
- **Carbon Emitted:** 0.83
|
|
|
|
|
|
|
| 158 |
|
| 159 |
## Technical Specifications [optional]
|
| 160 |
|