falcon rw 1b code generation llm task2 modelC

ProviderKatochh
Categorycode-generation
Licenseapache-2.0
Downloads4
Stars0

Overview

Falcon RW 1B is a lightweight, specialized small language model (SLM) optimized for code generation tasks. Designed for efficiency, it provides a high performance-to-parameter ratio, making it an ideal candidate for local deployment, edge computing, or as a fast autocomplete engine within an IDE. Unlike massive general-purpose models, this 1B parameter model focuses on reducing latency and memory overhead while maintaining precision in syntax and logic. Developers can integrate it into CI/CD pipelines for automated boilerplate generation or use it as a base for fine-tuning on proprietary internal libraries. Its Apache-2.0 license ensures flexibility for commercial integration without restrictive overhead.

Highlights

  • Lightweight 1B parameter architecture for low-latency local execution
  • Optimized specifically for high-precision code generation tasks
  • Permissive Apache-2.0 license for seamless commercial deployment
  • Low memory footprint ideal for IDE plugin integration

Usage

Install
# Install Hugging Face transformers
pip install transformers torch
SDK Usage
# Load model with transformers
from transformers import AutoModel, AutoTokenizer

model = AutoModel.from_pretrained("Katochh/falcon-rw-1b-code-generation-llm-task2-modelC")
tokenizer = AutoTokenizer.from_pretrained("Katochh/falcon-rw-1b-code-generation-llm-task2-modelC")

Hugging Face Download

We recommend downloading the model via the Hugging Face CLI or Hub SDK.

Guidance:Before downloading, install huggingface_hub with:

Guidance
pip install -U huggingface_hub

CLI Download

Download the full repository

Download the full repository
huggingface-cli download Katochh/falcon-rw-1b-code-generation-llm-task2-modelC

Download a single file to a local folder (e.g. config.json into ./dir)

Download a single file to a local folder (e.g. config.json into ./dir)
huggingface-cli download Katochh/falcon-rw-1b-code-generation-llm-task2-modelC config.json --local-dir ./dir

See the official docs for more CLI options

SDK Download

SDK Download
# 模型下载
from huggingface_hub import snapshot_download
model_dir = snapshot_download('Katochh/falcon-rw-1b-code-generation-llm-task2-modelC')

Git Download

Make sure git-lfs is installed first

Git Download
git lfs install
git clone https://huggingface.co/Katochh/falcon-rw-1b-code-generation-llm-task2-modelC

To skip LFS large-file downloads, use:

Skip LFS
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/Katochh/falcon-rw-1b-code-generation-llm-task2-modelC

Model files are hosted on the Hugging Face Hub — download directly via HF CLI / SDK / Git, not through this site.

PyTorch / Transformers Usage

Install Transformers

Install Transformers
pip install -U transformers torch

Load the model and run inference

Load the model and run inference
from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained('Katochh/falcon-rw-1b-code-generation-llm-task2-modelC')
tokenizer = AutoTokenizer.from_pretrained('Katochh/falcon-rw-1b-code-generation-llm-task2-modelC')

Full Documentation

来源: HuggingFace

---
license: apache-2.0
library_name: peft
tags:

  • trl

  • sft

  • generated_from_trainer

base_model: petals-team/falcon-rw-1b
model-index:
  • name: falcon-rw-1b-code-generation-llm-task2-modelC

results: []
---

<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->

falcon-rw-1b-code-generation-llm-task2-modelC

This model is a fine-tuned version of petals-team/falcon-rw-1b on an unknown dataset.
It achieves the following results on the evaluation set:

  • Loss: 1.6594

Model description

More information needed

Intended uses & limitations

More information needed

Training and evaluation data

More information needed

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 1e-05

  • train_batch_size: 2

  • eval_batch_size: 8

  • seed: 42

  • gradient_accumulation_steps: 2

  • total_train_batch_size: 4

  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08

  • lr_scheduler_type: cosine

  • lr_scheduler_warmup_ratio: 0.03

  • training_steps: 600

Training results

| Training Loss | Epoch | Step | Validation Loss |
|:-------------:|:------:|:----:|:---------------:|
| 1.626 | 0.0356 | 20 | 1.7087 |
| 1.9368 | 0.0712 | 40 | 1.6675 |
| 1.4542 | 0.1068 | 60 | 1.6467 |
| 1.2704 | 0.1423 | 80 | 1.6474 |
| 1.1888 | 0.1779 | 100 | 1.6618 |
| 0.9006 | 0.2135 | 120 | 1.6415 |
| 1.1376 | 0.2491 | 140 | 1.6583 |
| 0.9937 | 0.2847 | 160 | 1.6454 |
| 0.8624 | 0.3203 | 180 | 1.6594 |

Framework versions

  • PEFT 0.10.0
  • Transformers 4.40.0
  • Pytorch 2.2.1+cu121
  • Datasets 2.19.0
  • Tokenizers 0.19.1
Join our Telegram