Instructions to use hustcw/clap-asm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hustcw/clap-asm with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="hustcw/clap-asm", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("hustcw/clap-asm", trust_remote_code=True) model = AutoModel.from_pretrained("hustcw/clap-asm", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
Verified signature620f4be -
Update README.md
Verified signature1699dd0
-
Update README.md
Verified signaturef371566 -
Update README.md
Verified signature5c704cb -
Update README.md
Verified signatured7e56a1 -
Create modelcard
Verified signature<h1 align="center">CLAP: Learning Transferable Binary Code Representations with Natural Language Supervision</h1> <h4 align="center"> <p> <a href=#About>About</a> | <a href=#News >News </a> | <a href=#QuickStart >QuickStart </a> | <a href="#Citation"> Citation</a> <p> </h4> ## About CLAP (Contrastive Language-Assembly Pre-training) is a framework that learns binary code representations through natural language supervision. By aligning binary code with natural language explanations, it improves analysis performance in few-shot and zero-shot scenarios. Utilizing a dataset engine capable of automatically generating 195 million pairs of code snippets and their descriptions, CLAP offers a method with exceptional transferability in the field of binary code analysis. Our goal is to provide an effective tool for researchers and practitioners in binary code analysis, with our models accessible on the Hugging Face Model Hub. <img alt="clap_model" src…ff5ee6f -
update modeling
4f9cb85 -
add clap modeling
77fb417 -
Upload AsmEncoder
Verified signaturef5d2195 -
Upload tokenizer
Verified signature610bd27 -
initial commit
Verified signature78b5288