Run this model with HF Jobs
Run MCES10/code-gen-gemma-2-2b-it 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/MCES10/code-gen-gemma-2-2b-it. 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/MCES10/code-gen-gemma-2-2b-it 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.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/MCES10/code-gen-gemma-2-2b-it. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/MCES10/code-gen-gemma-2-2b-it. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use MCES10/code-gen-gemma-2-2b-it with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Adapters
How to use MCES10/code-gen-gemma-2-2b-it with Adapters:
from adapters import AutoAdapterModel model = AutoAdapterModel.from_pretrained("<base-model-id>") model.load_adapter("MCES10/code-gen-gemma-2-2b-it", set_active=True) - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files6 unmodified lines7891010111213141516171819202122232425262728293031323334353637383940414243444546476 unmodified linespipeline_tag: text-generationtags:- code,------
# Code Generation and Problem Solving
## Google's Gemma 2 2b it## Fine Tuned on Kaggle Dataset https://www.kaggle.com/datasets/thedevastator/coding-questions-with-solutions## Text Generation Example:
Input:==========Question: If Mikhail goes from the point $(x1, y1)$ to the point $(x2, y2)$ in one move, and $x1 \ne x2$ and $y1 \ne y2$, then such a move is called a diagonal move. Mikhail has $q$ queries. For the $i$-th query Mikhail's target is to go to the point $(n_i, m_i)$ from the point $(0, 0)$ in exactly $k_i$ moves. Among all possible movements he want to choose one with the maximum number of diagonal moves. Your task is to find the maximum number of diagonal moves or find that it is impossible to go from the point $(0, 0)$ to the point $(n_i, m_i)$ in $k_i$ moves. Note that Mikhail can visit any point any number of times (even the destination point!).
Output:==========Let's break down this problem step-by-step.
**Understanding the Problem**
* **Mikhail's Moves:** Mikhail can move diagonally, meaning he can move in a way that forms a diagonal line between two points.* **Queries:** Mikhail has a set of queries, each representing a target point.* **Target Point:** The target point is the point Mikhail wants to reach.* **Moves:** The number of moves Mikhail needs to make to reach the target point.* **Diagonal Moves:** The maximum number of diagonal moves Mikhail can make.
**Analyzing the Problem**
The problem is about finding the maximum number of diagonal moves Mikhail can make to reach a target point.
**Key Concepts**
* **Diagonal Movement:** Mikhail can move diagonally, meaning he can move in a way that forms a diagonal line between two points.* **Distance:** The distance between two points is important to determine the number of moves....==========Prompt: 149 tokens, 386.395 tokens-per-secGeneration: 460 tokens, 24.677 tokens-per-secPeak memory: 5.358 GBREADME.md+38-1