Run this model with HF Jobs
Run deepcode-ai/deepcode-base 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/deepcode-ai/deepcode-base. 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/deepcode-ai/deepcode-base 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 deepcode-ai/deepcode-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use deepcode-ai/deepcode-base with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import MultiModalityCausalLM model = MultiModalityCausalLM.from_pretrained("deepcode-ai/deepcode-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Create config.json
Browse files12345678910111213141516171819202122232425262728{"architectures": ["LlamaForCausalLM"],"bos_token_id": 32013,"eos_token_id": 32014,"hidden_act": "silu","hidden_size": 2048,"initializer_range": 0.02,"intermediate_size": 5504,"max_position_embeddings": 16384,"model_type": "llama","num_attention_heads": 16,"num_hidden_layers": 24,"num_key_value_heads": 16,"pretraining_tp": 1,"rms_norm_eps": 1e-06,"rope_scaling": {"factor": 4.0,"type": "linear"},"rope_theta": 100000,"tie_word_embeddings": false,"torch_dtype": "bfloat16","transformers_version": "4.34.1","use_cache": true,"vocab_size": 32256}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970{"aligner_config": {"cls": "MlpProjector","model_type": "aligner","params": {"depth": 2,"input_dim": 1024,"n_embed": 4096,"projector_type": "low_high_hybrid_split_mlp_gelu"}},"architectures": ["MultiModalityCausalLM"],"language_config": {"max_position_embeddings": 16384,"model_type": "llama","num_hidden_layers": 30,"torch_dtype": "float16","vocab_size": 102400},"model_type": "multi_modality","torch_dtype": "float16","transformers_version": "4.38.2","vision_config": {"cls": "HybridVisionTower","model_type": "vision","params": {"concat_type": "tuple","freeze_high": true,"freeze_low": true,"high_res_cfg": {"ckpt_path": "","image_size": 1024,"model_name": "sam_b_downsample","output_dim": 1024,"pixel_mean": [0.48145466,0.4578275,0.40821073],"pixel_std": [0.26862954,0.26130258,0.27577711],"select_feature": "same","select_layer": -1},"low_res_cfg": {"ckpt_path": "","image_size": 384,"model_name": "siglip_large_patch16_384","output_dim": 1024,"pixel_mean": [0.5,0.5,0.5],"pixel_std": [0.5,0.5,0.5],"select_feature": "same","select_layer": -1}}}}
config.json+66-24