Code Monkey home page Code Monkey logo

titanfuzz's Issues

How to collect the line coverage?

I am a student currently studying this project, and I am using coverage.py to collect line coverage data. However, the results I obtained are quite different from those in the paper, which has left me feeling confused.

Cannot set a non-string value as the PAD token when running bash scripts/demo_run_tf.sh

When I try to run bash scripts/demo_run_tf.sh, I encounter "Cannot set a non-string value as the PAD token". How can I resolve this?

Complete Output:

Current directory:  /home/src/run
Results will be dumped to:  /home/src/run/Results
[0 / 2] tf.nn.conv2d
output.returncode:  0
stdout>  Current directory:  /home/src/run
Results will be dumped to:  /home/src/run/Results
api:  tf.nn.conv2d
Initializing a SpanLM based model: facebook/incoder-1B ...
Max length: 2048
Cannot set a non-string value as the PAD token

After loading Local LLM, console displays 'Constant' object has no attribute 'kind'

(titanfuzz) [tly@localhost TitanFuzz]$ bash scripts/demo_run_torch.sh false
Warning: running in a non-docker environment!
Current directory: /home/tly/Fuzzing/TitanFuzz/TitanFuzz
Results will be dumped to: /home/tly/Fuzzing/TitanFuzz/TitanFuzz/Results
[0 / 2] torch.nn.RReLU
output.returncode: 0
stdout> Current directory: /home/tly/Fuzzing/TitanFuzz/TitanFuzz
Results will be dumped to: /home/tly/Fuzzing/TitanFuzz/TitanFuzz/Results

api: torch.nn.RReLU
Initializing a SpanLM based model: facebook/incoder-1B ...
pretrained: facebook/incoder-1B
Model loaded from: /home/tly/Fuzzing/TitanFuzz/TitanFuzz/LLM/incoder-1B
Model configuration: XGLMConfig {
"_name_or_path": "/home/tly/Fuzzing/TitanFuzz/TitanFuzz/LLM/incoder-1B",
"activation_dropout": 0.0,
"activation_function": "gelu",
"architectures": [
"XGLMForCausalLM"
],
"attention_dropout": 0.1,
"attention_heads": 32,
"bos_token_id": 0,
"d_model": 2048,
"decoder_start_token_id": 2,
"dropout": 0.1,
"eos_token_id": 2,
"ffn_dim": 8192,
"init_std": 0.02,
"layerdrop": 0.0,
"max_position_embeddings": 2048,
"model_type": "xglm",
"num_layers": 24,
"pad_token_id": 1,
"scale_embedding": true,
"torch_dtype": "float32",
"transformers_version": "4.39.3",
"use_cache": true,
"vocab_size": 50518
}

Max length: 2048
Batch size: 30
Model loading time: 45.33568048477173
'Constant' object has no attribute 'kind'

[1 / 2] torch.nn.Conv2d
output.returncode: 0
stdout> Current directory: /home/tly/Fuzzing/TitanFuzz/TitanFuzz
Results will be dumped to: /home/tly/Fuzzing/TitanFuzz/TitanFuzz/Results

api: torch.nn.Conv2d
Initializing a SpanLM based model: facebook/incoder-1B ...
pretrained: facebook/incoder-1B
Model loaded from: /home/tly/Fuzzing/TitanFuzz/TitanFuzz/LLM/incoder-1B
Model configuration: XGLMConfig {
"_name_or_path": "/home/tly/Fuzzing/TitanFuzz/TitanFuzz/LLM/incoder-1B",
"activation_dropout": 0.0,
"activation_function": "gelu",
"architectures": [
"XGLMForCausalLM"
],
"attention_dropout": 0.1,
"attention_heads": 32,
"bos_token_id": 0,
"d_model": 2048,
"decoder_start_token_id": 2,
"dropout": 0.1,
"eos_token_id": 2,
"ffn_dim": 8192,
"init_std": 0.02,
"layerdrop": 0.0,
"max_position_embeddings": 2048,
"model_type": "xglm",
"num_layers": 24,
"pad_token_id": 1,
"scale_embedding": true,
"torch_dtype": "float32",
"transformers_version": "4.39.3",
"use_cache": true,
"vocab_size": 50518
}

Max length: 2048
Batch size: 30
Model loading time: 41.063090324401855
'Constant' object has no attribute 'kind'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.